Skip to content

Fix installation to paths with spaces #907

Closed as not planned
Closed as not planned
@unflxw

Description

@unflxw

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)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions