contextify icon indicating copy to clipboard operation
contextify copied to clipboard

Failing install on OS X Yosemite

Open lubomski opened this issue 11 years ago • 25 comments

seeing error when installing node package html-md; error log reporting contextify as the culprit

node 4.1.1 npm 2.14.4

14 errors generated.
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/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/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/contextify
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "contextify" "-g"
npm ERR! node v4.1.1
npm ERR! npm  v2.14.4
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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 their info via:
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/USERNAME/npm-debug.log

Full log: https://gist.github.com/lubomski/3e2b68254885ae2c0a9b

lubomski avatar Sep 30 '15 08:09 lubomski

+1

gouthamve avatar Oct 01 '15 16:10 gouthamve

+1

mattmischuk avatar Oct 02 '15 15:10 mattmischuk

This is related to node 4.*, switch to node 0.12.* and install works fine.

mattmischuk avatar Oct 02 '15 15:10 mattmischuk

switching to node 0.12.* did not work for me :(, same issue however

aschiopu avatar Oct 02 '15 16:10 aschiopu

I had the same problem, solved it by:

  • Updating to the latest Xcode v7.0.1 (7A1001)
  • Re-installed node-gyp.
$ rm -Rf node_modules  
$ npm install node-gyp --reinstall -g
$ npm install

I hope it helps you @aschiopu

egbertp avatar Oct 04 '15 17:10 egbertp

+1 All of the above solutions have not worked for me.

GC-Max avatar Oct 05 '15 08:10 GC-Max

@gc-max have you tried reinstalling node?

mattmischuk avatar Oct 05 '15 11:10 mattmischuk

@mattmischuk Yes I was using 4. Then installed nvm and installed version 0.12.* and used that. Same issue

GC-Max avatar Oct 05 '15 11:10 GC-Max

Using nvm to install version 0.12.7 and then reinstalling fixed the issue for me.

machikoyasuda avatar Oct 06 '15 01:10 machikoyasuda

With Node.js 4.1.2, contextify was failing to install until I rolled back to Node.js 0.12.7 (on OS X 10.11). This is really sad. Please fix.

mitranim avatar Oct 06 '15 11:10 mitranim

I'm seeing the same issue on Mac OS 10.11 with node v4.1.2. I downgraded to Node v0.12.7 and the installation was successful.

cnewfeldt avatar Oct 08 '15 20:10 cnewfeldt

+1 Breaks in node 4.0.*. Downgraded to node 0.12.* meanwhile.

queimadus avatar Oct 09 '15 00:10 queimadus

$ node -v v0.12.7

$ npm -v 2.14.4

$ node-gyp -v v3.0.3

npm install contextify still breaks on node-gyp rebuild

katiesandford avatar Oct 09 '15 08:10 katiesandford

You can downgrade easily with Homebrew:

brew uninstall node
brew install homebrew/versions/node012

rdinse avatar Oct 10 '15 20:10 rdinse

Node v0.12 only worked for me when I upgraded OSX to 10.11.

katiesandford avatar Oct 10 '15 22:10 katiesandford

+1

Downgrading to 0.12.7 via nvm works for now.

Working:

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.11
BuildVersion:   XXXXXX
$ node -v
v0.12.7
$ node-gyp -v
v3.0.3

MitchLillie avatar Oct 13 '15 15:10 MitchLillie

See #180 Pull request to deal with this issue #181. Not promising as the last meaningful comment was posted over a month ago.

gravidThoughts avatar Oct 20 '15 15:10 gravidThoughts

Fixed in 0.1.15

brianmcd avatar Nov 12 '15 16:11 brianmcd

@brianmcd

Nope, not really.

1770 verbose stack Error: [email protected] install: `node-gyp rebuild`
1770 verbose stack Exit status 1
1770 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:232:16)
1770 verbose stack     at emitTwo (events.js:100:13)
1770 verbose stack     at EventEmitter.emit (events.js:185:7)
1770 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:24:14)
1770 verbose stack     at emitTwo (events.js:100:13)
1770 verbose stack     at ChildProcess.emit (events.js:185:7)
1770 verbose stack     at maybeClose (internal/child_process.js:821:16)
1770 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
1771 verbose pkgid [email protected]
1772 verbose cwd /vagrant
1773 error Linux 3.13.0-77-generic
1774 error argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "fabric" "--save" "--unsafe-perm" "--no-bin-links"
1775 error node v5.5.0
1776 error npm  v3.3.12
1777 error code ELIFECYCLE
1778 error [email protected] install: `node-gyp rebuild`
1778 error Exit status 1
1779 error Failed at the [email protected] install script 'node-gyp rebuild'.
1779 error Make sure you have the latest version of node.js and npm installed.
1779 error If you do, this is most likely a problem with the contextify package,
1779 error not with npm itself.
1779 error Tell the author that this fails on your system:
1779 error     node-gyp rebuild
1779 error You can get their info via:
1779 error     npm owner ls contextify
1779 error There is likely additional logging output above.
1780 verbose exit [ 1, true ]

npm 3.3.12 node 5.5.0 node-gyp 3.2.1

StephanBijzitter avatar Feb 09 '16 10:02 StephanBijzitter

@StephanBijzitter that's a problem with your environment, not contextify

brianmcd avatar Feb 09 '16 15:02 brianmcd