TooTallNate / ref

Turn Buffer instances into "pointers"
http://tootallnate.github.com/ref
451 stars 141 forks source link

npm install failed #92

Closed magussiro closed 6 years ago

magussiro commented 6 years ago

I'm using "npm install" to install iotaproxy,something goes wrong, according errlog message,I'm posting the message here:

> ref@1.3.5 install /Users/Magus 1/Project/BlockChain/iotaproxy/node_modules/ref
> node-gyp rebuild

  CXX(target) Release/obj.target/binding/src/binding.o
clang: error: no such file or directory: '1/.node-gyp/6.11.3/include/node'
clang: error: no such file or directory: '1/.node-gyp/6.11.3/src'
clang: error: no such file or directory: '1/.node-gyp/6.11.3/deps/uv/include'
clang: error: no such file or directory: '1/.node-gyp/6.11.3/deps/v8/include'
make: *** [Release/obj.target/binding/src/binding.o] Error 1
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:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
gyp ERR! System Darwin 16.7.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/Magus 1/Project/BlockChain/iotaproxy/node_modules/ref
gyp ERR! node -v v6.11.3
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN iotaproxy@1.0.0 No repository field.
npm ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.11.3
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! ref@1.3.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ref@1.3.5 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ref package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ref
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls ref

npm ERR! There is likely additional logging output above.

npm-debug.txt

TooTallNate commented 6 years ago

Looks like you're running into this (quite old) node-gyp bug: https://github.com/nodejs/node-gyp/issues/65.

Please try installing the module to a path that does not contain spaces.