nodejs / gyp-next

A fork of the GYP build system for use in the Node.js projects
BSD 3-Clause "New" or "Revised" License
125 stars 69 forks source link

fix: failure when build directory contains spaces #204

Open tombruijn opened 11 months ago

tombruijn commented 11 months ago

Fix an installation issue that occurs when a path in which node-gyp is run contains spaces.

For a path like my app, it would error with this message:

clang: error: no such file or directory: 'app/node_modules/node-addon-api'

The "my" part before the space (and the rest of the path before it) would be missing from the path in the error message.

Fixes https://github.com/nodejs/node-gyp/issues/65