barrysteyn / node-scrypt

Scrypt for Node
369 stars 88 forks source link

install script fails when user path contains spaces #170

Open working-name opened 6 years ago

working-name commented 6 years ago

I have a custom user folder on a separate storage media on macOS 10.13.2, and that path contains a space. Most packages have been fine so far, but this one chokes on it.

Just FYI.

> scrypt@6.0.3 preinstall /usr/local/lib/node_modules/scrypt
> node node-scrypt-preinstall.js

> scrypt@6.0.3 install /usr/local/lib/node_modules/scrypt
> node-gyp rebuild

make: *** No rule to make target `../../../../../../Volumes/28TB/9-14/User', needed by `Makefile'.  Stop.
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:160:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Darwin 17.3.0
gyp ERR! command "/usr/local/Cellar/node/9.4.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/scrypt
gyp ERR! node -v v9.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt@6.0.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt@6.0.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Volumes/28TB/tmp/.npm/_logs/2018-01-21T02_25_38_887Z-debug.log

this is the incomplete path ../../../../../../Volumes/28TB/9-14/User, there's a space after User.