Closed brascosDad closed 8 years ago
back story: in trying to uninstall iojs and reinstall node, I entered a world of shizzao but finally got node and npm installed successfully....I tried installing node-gyp globally to no avail...
Delete your $HOME/.node-gyp
directory and try again.
Aside, many tools don't handle spaces in path names well (/Users/ernest son/...
).
sorry, when you say "$home" do you essentially mean usr/local/bin? that's what "which node-gyp" yields in term...or do you mean another location?
I did change my user name by eliminating space for "_". thanks for the heads up
I mean the HOME environment variable. :-) node-gyp normally downloads the development tarballs to $HOME/.node-gyp
, i.e., /home/username/.node-gyp
or /Users/username/.node-gyp
.
thanks, i figured out what you meant....just tried npm install and it appears i still have rebuild issues. it looks as though my user rename didn't propogate..(?)
> bufferutil@1.2.1 install /Users/ernest son/Desktop/PROJECTS/musicomp/node_modules/bufferutil
> node-gyp rebuild
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
clang: error: no such file or directory: 'son/.node-gyp/5.0.0/include/node'
clang: error: no such file or directory: 'son/.node-gyp/5.0.0/src'
clang: error: no such file or directory: 'son/.node-gyp/5.0.0/deps/uv/include'
clang: error: no such file or directory: 'son/.node-gyp/5.0.0/deps/v8/include'
make: *** [Release/obj.target/bufferutil/src/bufferutil.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:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/usr/local/Cellar/node/5.0.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/ernest son/Desktop/PROJECTS/musicomp/node_modules/bufferutil
gyp ERR! node -v v5.0.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:bufferutil@1.2.1 bufferutil@1.2.1 install: `node-gyp rebuild`
npm WARN install:bufferutil@1.2.1 Exit status 1
> utf-8-validate@1.2.1 install /Users/ernest son/Desktop/PROJECTS/musicomp/node_modules/utf-8-validate
> node-gyp rebuild
CXX(target) Release/obj.target/validation/src/validation.o
clang: error: no such file or directory: 'son/.node-gyp/5.0.0/include/node'
clang: error: no such file or directory: 'son/.node-gyp/5.0.0/src'
clang: error: no such file or directory: 'son/.node-gyp/5.0.0/deps/uv/include'
clang: error: no such file or directory: 'son/.node-gyp/5.0.0/deps/v8/include'
make: *** [Release/obj.target/validation/src/validation.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:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/usr/local/Cellar/node/5.0.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/ernest son/Desktop/PROJECTS/musicomp/node_modules/utf-8-validate
gyp ERR! node -v v5.0.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:utf-8-validate@1.2.1 utf-8-validate@1.2.1 install: `node-gyp rebuild`
npm WARN install:utf-8-validate@1.2.1 Exit status 1
musiComp@1.0.0 /Users/ernest son/Desktop/PROJECTS/musicomp
├─┬ gulp@3.9.0
│ └─┬ vinyl-fs@0.3.14
│ └─┬ through2@0.6.5
│ └── readable-stream@1.0.33
├─┬ gulp-clean@0.3.1
│ ├─┬ gulp-util@2.2.20
│ │ └─┬ through2@0.5.1
│ │ ├── readable-stream@1.0.33
│ │ └── xtend@3.0.0
│ └─┬ through2@0.4.2
│ └── readable-stream@1.0.33
├─┬ gulp-concat@2.6.0
│ └─┬ through2@0.6.5
│ └── readable-stream@1.0.33
├─┬ gulp-cssmin@0.1.7
│ └─┬ gulp-util@2.2.20
│ └─┬ through2@0.5.1
│ ├── readable-stream@1.0.33
│ └── xtend@3.0.0
├─┬ gulp-jshint@1.12.0
│ └─┬ through2@0.6.5
│ └── readable-stream@1.0.33
├─┬ gulp-karma@0.0.5
│ ├─┬ gulp-util@2.2.20
│ │ └─┬ through2@0.5.1
│ │ ├── readable-stream@1.0.33
│ │ └── xtend@3.0.0
│ └─┬ optimist@0.6.1
│ └── minimist@0.0.10
├─┬ gulp-ruby-sass@2.0.5
│ └─┬ vinyl-fs@1.0.0
│ └─┬ through2@0.6.5
│ └── readable-stream@1.0.33
├─┬ karma@0.13.14
│ ├─┬ chokidar@1.2.0
│ │ └─┬ fsevents@1.0.5
│ │ └─┬ node-pre-gyp@0.6.15
│ │ └─┬ tar-pack@3.1.0
│ │ └── readable-stream@1.0.33
│ └─┬ log4js@0.6.27
│ └── readable-stream@1.0.33
└─┬ phantomjs@1.9.18
└─┬ request@2.42.0
└─┬ bl@0.9.4
└── readable-stream@1.0.33
Maybe you need to log out and log in again? It's also possible that $HOME/.npmrc
has some outdated variables.
so redelete $HOME/.node-gyp and also .npmrc? logout and try again? I already restarted after user name change...
Maybe just edit your .npmrc in case it contains valuable things like tokens.
i see a .rvmrc folder in $HOME, but no .npmrc.....and how exactly would I edit it (if I could find it)?
If you don't have a .npmrc, don't worry about it. If you do, just vim will do; it's a text file.
I don't have one...any other ideas? I think I've tried everything on our list On Mon, Nov 9, 2015 at 1:39 PM Ben Noordhuis notifications@github.com wrote:
If you don't have a .npmrc, don't worry about it. If you do, just vim will do; it's a text file.
— Reply to this email directly or view it on GitHub https://github.com/nodejs/node-gyp/issues/809#issuecomment-155150352.
getting same problem here when trying to install ember-cli
same problem here with contextify.
for me, the solution was fixing the space in my home folder (that was a whole other "can o' worms"). then 'npm install' worked like a charm. also, I suggest reaching out to the folks at npm if it truly is npm related. They're great!
I also had the node-gyp rebuild error while installing utf-8-validate package through npm. Removing the space from my filepath worked for me.
Same with botkit. https://github.com/howdyai/botkit/issues/2
Ok, so I do not have a space in my filepath. I deleted the ~/.node-gyp
folder and then the ~/.npmrc
file. Restarted my computer. Then tried again and it worked. Hope that helps someone else out there!
@aroc It doesn't helped for me :(
Thanks @bnoordhuis! I had the same issue with no spaces in my file path. Deleting the original node_modules folder from my project, then deleting .node-gyp (I did not have .npmrc), restarting, and installing node in my project again with (sudo npm install) worked with no errors.
Node v5.2.0
Yikes. It scares me to think how low-level this is that a machine restart is a potential solution...
I had similar issues on Ubuntu 14.04, after trying everything here I finally solved it by running:
sudo apt-get install build-essential
As is recommended here: https://nodejs.org/en/download/package-manager/
I already had build-essential installed, installing libkrb5-dev did the trick for me:
apt-get install libkrb5-dev
For me, just deleting the ~/.node-gyp
folder, then running npm update
on my project solved the problem (without rebooting). Thank for the trick!
Run into same error when trying to download dependencies for angular-phonecat
. I solved it by using @bnoordhuis method just the same way @JxnGraphix put it.
Node 4.2.3
I also deleted the node_modules
directory I had (including .node-gyp
and all), solved my issue. No restart.
Thanks @aroc I removed ~/.node-gyp
and ~/.npmrc
. In my project I removed node_modules
and restarted my machine (restart might not be necessary) and all worked great.
node v4.1.2 npm 2.14.4 OS X El Capitan
Thanks @JxnGraphix - your solution worked for me
Node v5.7.0
for me helped: apt-get install libkrb5-dev
thanks @samgranger
Had a problem with this rebuilding node-sass, deleting ~/.node-gyp
and npm update
did it for me.
Closing, looks like this issue ran its course.
Running node 6.2.0
here and getting getting node-gyp
error. Anyone had this issue with this version of node.js ?
@novarac23 I'm getting it with node 6.1.0
Same here, node v6.2.1
Here as well, node v6.2.1
Yes same here also... node v6.2.1 with Windows OS
To solve this I downgraded node to v5.12.0
, removed ~/.node-gyp
folder and reinstalled node modules.
presleguine solution worked for me but downgrading the node to v4.4.7
I tried many suggestions and the only thing that worked is @JxnGraphix solution. Steps are:
Finally.... Wew!
Update: I encountered it again and instead of doing the above, this solution (symlinking node to nodejs) worked for me also.
sudo ln -s `which nodejs` /usr/bin/node
sudo npm install
Dang it I just don't have luck with Node these days.
I tried to downgrade the version to 4.x.x
and removed node-gyp
and removed node-modules
from the project and still nothing... 😢
Working on RHEL6 here. Same problem with v6.2.1 Everything goes again smoothly when downgrading to v5.12.0 (I use nvm for simplicity)
If you don't have a space in your username then you're probably not experiencing the same problem as the original poster. If you're getting compile failures it could be because of your build environment setup or the package that you're trying to install has some problem with the version of Node.js you're using. If you still think it's a node-gyp problem then please paste your full output to a gist or similar and give us the URL so we can see if there's anything to be gleaned from it.
s2geometry-node@1.3.1 install /Users/chadsfather/Desktop/All Your Desktop Groups Files/Escritorio/proyectos_web/pokeradar/testpk/node_modules/s2geometry-node node-gyp rebuild
CXX(target) Release/obj.target/NativeExtension/src/NativeExtension.o
c++: error: unrecognized command line option '-stdlib=libc++'
make: *\ [Release/obj.target/NativeExtension/src/NativeExtension.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:204:12)
gyp ERR! System Darwin 15.5.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/chadsfather/Desktop/All Your Desktop Groups Files/Escritorio/proyectos_web/pokeradar/testpk/node_modules/s2geometry-node
gyp ERR! node -v v6.2.2
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm WARN pokeradar@1.0.0 No repository field.
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.2.2
npm ERR! npm v3.8.3
npm ERR! code ELIFECYCLE
npm ERR! s2geometry-node@1.3.1 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the s2geometry-node@1.3.1 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 s2geometry-node 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 s2geometry-node
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls s2geometry-node
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /Users/chadsfather/Desktop/All Your Desktop Groups Files/Escritorio/proyectos_web/pokeradar/testpk/npm-debug.log
OS X El Capitan node v6.2.2 npm 3.8.3
Just parroting the issue : I've had two completely separate applications fail to build in the last week, apparently due to node-gyp rebuild. One is a meteor app, running on win7, the other is on an ubuntu box - a mature application, suddenly breaking. I get very similar output to the above, due to two separate, and unrelated, parent packages (bcrypt and contextify).
Sample output :
make: Leaving directory `/users/jbosworth/fusion-dgo/node_modules/jsdom/node_modules/contextify/build'
make: *** [Release/obj.target/contextify/src/contextify.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.13.0-63-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /users/jbosworth/fusion-dgo/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v4.4.4
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR! Linux 3.13.0-63-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.4.4
npm ERR! npm v2.15.1
npm ERR! code ELIFECYCLE
npm ERR! contextify@0.1.13 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.13 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the contextify 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 contextify
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls contextify
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /users/jbosworth/fusion-dgo/npm-debug.log
Current versions of node / npm
Have not found a solution, yet.
+1 to this issue. I've tried all of the above, downgraded from 6 > 5, then 5 > 4 using n with no luck.
npm-debug.log snippet
1290 verbose stack Error: v8-debug@0.4.6 install: `node-pre-gyp install --fallback-to-build`
1290 verbose stack Exit status 1
1290 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:239:16)
1290 verbose stack at emitTwo (events.js:100:13)
1290 verbose stack at EventEmitter.emit (events.js:185:7)
1290 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
1290 verbose stack at emitTwo (events.js:100:13)
1290 verbose stack at ChildProcess.emit (events.js:185:7)
1290 verbose stack at maybeClose (internal/child_process.js:850:16)
1290 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
1291 verbose pkgid v8-debug@0.4.6
1292 verbose cwd /home/drew/code/mean/app
1293 error Linux 4.4.0-31-generic
1294 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
1295 error node v5.12.0
1296 error npm v3.8.6
1297 error code ELIFECYCLE
1298 error v8-debug@0.4.6 install: `node-pre-gyp install --fallback-to-build`
1298 error Exit status 1
1299 error Failed at the v8-debug@0.4.6 install script 'node-pre-gyp install --fallback-to-build'.
1299 error Make sure you have the latest version of node.js and npm installed.
1299 error If you do, this is most likely a problem with the v8-debug package,
1299 error not with npm itself.
1299 error Tell the author that this fails on your system:
1299 error node-pre-gyp install --fallback-to-build
1299 error You can get information on how to open an issue for this project with:
1299 error npm bugs v8-debug
1299 error Or if that isn't available, you can get their info via:
1299 error npm owner ls v8-debug
1299 error There is likely additional logging output above.
1300 verbose exit [ 1, true ]
@Bosworth99 @drewsmith You are omitting the actual build error.
@bnoordhuis - I believe this should be more helpfull :
> contextify@0.1.13 install /users/jbosworth/fusion-dgo/node_modules/jsdom/node_modules/contextify
> node-gyp rebuild
make: Entering directory `/users/jbosworth/fusion-dgo/node_modules/jsdom/node_modules/contextify/build'
CXX(target) Release/obj.target/contextify/src/contextify.o
In file included from ../node_modules/nan/nan_new.h:181:0,
from ../node_modules/nan/nan.h:74,
from ../src/contextify.cc:3:
../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::Signature>::return_t NanIntern::Factory<v8::Signature>::New(NanIntern::Factory<v8::Signature>::FTH, int, NanIntern::Factory<v8::Signature>::FTH*)’:
../node_modules/nan/nan_implementation_12_inl.h:172:76: error: no matching function for call to ‘v8::Signature::New(v8::Isolate*, NanIntern::Factory<v8::Signature>::FTH&, int&, NanIntern::Factory<v8::Signature>::FTH*&)’
return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
^
../node_modules/nan/nan_implementation_12_inl.h:172:76: note: candidate is:
In file included from /users/jbosworth/.node-gyp/4.4.4/include/node/node.h:42:0,
from ../src/contextify.cc:1:
/users/jbosworth/.node-gyp/4.4.4/include/node/v8.h:4675:27: note: static v8::Local<v8::Signature> v8::Signature::New(v8::Isolate*, v8::Local<v8::FunctionTemplate>)
static Local<Signature> New(
^
/users/jbosworth/.node-gyp/4.4.4/include/node/v8.h:4675:27: note: candidate expects 2 arguments, 4 provided
In file included from ../src/contextify.cc:3:0:
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:165:25: error: redefinition of ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
^
../node_modules/nan/nan.h:160:25: error: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
^
../node_modules/nan/nan.h:500:13: error: ‘node::smalloc’ has not been declared
, node::smalloc::FreeCallback callback
^
../node_modules/nan/nan.h:500:35: error: expected ‘,’ or ‘...’ before ‘callback’
, node::smalloc::FreeCallback callback
^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:
../node_modules/nan/nan.h:504:50: error: ‘callback’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../node_modules/nan/nan.h:504:60: error: ‘hint’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:
../node_modules/nan/nan.h:511:67: error: call of overloaded ‘New(v8::Isolate*, const char*&, uint32_t&)’ is ambiguous
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
../node_modules/nan/nan.h:511:67: note: candidates are:
In file included from ../node_modules/nan/nan.h:25:0,
from ../src/contextify.cc:3:
/users/jbosworth/.node-gyp/4.4.4/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) <near match>
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
/users/jbosworth/.node-gyp/4.4.4/include/node/node_buffer.h:31:40: note: no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’
/users/jbosworth/.node-gyp/4.4.4/include/node/node_buffer.h:43:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) <near match>
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
/users/jbosworth/.node-gyp/4.4.4/include/node/node_buffer.h:43:40: note: no known conversion for argument 2 from ‘const char*’ to ‘char*’
In file included from ../src/contextify.cc:3:0:
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:
../node_modules/nan/nan.h:515:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:
../node_modules/nan/nan.h:522:12: error: ‘Use’ is not a member of ‘node::Buffer’
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^
make: *** [Release/obj.target/contextify/src/contextify.o] Error 1
make: Leaving directory `/users/jbosworth/fusion-dgo/node_modules/jsdom/node_modules/contextify/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.13.0-63-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /users/jbosworth/fusion-dgo/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v4.4.4
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR! Linux 3.13.0-63-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.4.4
npm ERR! npm v2.15.1
npm ERR! code ELIFECYCLE
npm ERR! contextify@0.1.13 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.13 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the contextify 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 contextify
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls contextify
npm ERR! There is likely additional logging output above.
This is a ubuntu box, node v4.4.4 npm v2.15.1
Having a very similar issue with the Bcrypt package on a win7 box: node v6.3.0 npm 3.10.3
Thanks for looking into this.
@Bosworth99 That is not a node-gyp issue. The build errors indicate that the module doesn't support node.js v4. Try upgrading to the latest contextify release.
@bnoordhuis - thats a good tip. Will work on it.
Thanks for the quick response -
gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@6.3.1 | win32 | x64
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'C:\Users\Deeksha Gupta\AppData\Roaming\npm\node_modules\node-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\Deeksha Gupta\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\Deeksha Gupta\AppData\Roaming\npm\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\Deeksha Gupta.node-gyp\6.3.1\include\node\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\Deeksha Gupta.node-gyp\6.3.1',
gyp info spawn args '-Dnode_gyp_dir=C:\Users\Deeksha Gupta\AppData\Roaming\npm\node_modules\node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\Users\Deeksha Gupta',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\Users\Deeksha Gupta\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: C:\Users\Deeksha Gupta) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\Deeksha Gupta\AppData\Roaming\npm\node_modules\node-gyp\lib\configure.js:305:16)
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:204:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Deeksha Gupta\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Deeksha Gupta
gyp ERR! node -v v6.3.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
Anyone still facing this issue, this might help (at least worked for me, macbook pro, 10.9.5): http://stackoverflow.com/questions/21752172/invalid-deployment-target-for-stdlib-libc-on-osx-10-8