When the full file system path of the folder where the package.json is located contains spaces, the AppSignal extension fails to compile when installing the AppSignal package from npm. At least on macOS, but probably not just on macOS. Repro:
mkdir "foo bar"
cd "foo bar"
npm init -y
npm i --save @appsignal/nodejs@latest
cat node_modules/@appsignal/nodejs/ext/install.report
You'll see in the install report that node-gyp at some point passes a path to clang unquoted, resulting in:
clang: error: no such file or directory: 'bar/node_modules/node-addon-api'
It's unclear at this moment whether this is an issue with node-gyp itself, or with how we configure it.
It looks to be a bug in node-gyp: #907 (comment)
When the full file system path of the folder where the
package.jsonis located contains spaces, the AppSignal extension fails to compile when installing the AppSignal package from npm. At least on macOS, but probably not just on macOS. Repro:You'll see in the install report that
node-gypat some point passes a path toclangunquoted, resulting in:It's unclear at this moment whether this is an issue with node-gyp itself, or with how we configure it.
It looks to be a bug in node-gyp: #907 (comment)