Latest contextify still won't build with IO.js
IO.js v1.0.4:
-
> [email protected] install ./node_modules/juice/node_modules/jsdom/node_modules/contextify
> node-gyp rebuild
child_process: customFds option is deprecated, use stdio instead.
make: Entering directory `./node_modules/juice/node_modules/jsdom/node_modules/contextify/build'
CXX(target) Release/obj.target/contextify/src/contextify.o
In file included from ../src/contextify.cc:3:
../node_modules/nan/nan.h:481: error: ‘NanNew’ declared as an ‘inline’ variable
../node_modules/nan/nan.h:481: warning: ‘always_inline’ attribute ignored
../node_modules/nan/nan.h:481: error: ‘v8::Local<v8::String> NanNew’ redeclared as different kind of symbol
../node_modules/nan/nan.h:475: error: previous declaration of ‘v8::Local<v8::String> NanNew(v8::String::ExternalStringResource*)’
../node_modules/nan/nan.h:481: error: ‘ExternalAsciiStringResource’ is not a member of ‘v8::String’
../node_modules/nan/nan.h:481: error: ‘resource’ was not declared in this scope
../node_modules/nan/nan.h: In function ‘bool _NanGetExternalParts(v8::Handle<v8::Value>, const char**, size_t*)’:
../node_modules/nan/nan.h:2103: error: ‘class v8::String’ has no member named ‘IsExternalAscii’
../node_modules/nan/nan.h:2104: error: expected initializer before ‘*’ token
../node_modules/nan/nan.h:2105: error: ‘ext’ was not declared in this scope
../node_modules/nan/nan.h:2105: error: ‘class v8::String’ has no member named ‘GetExternalAsciiStringResource’
make: *** [Release/obj.target/contextify/src/contextify.o] Error 1
make: Leaving directory `./node_modules/juice/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 (/home/master/.nvm/versions/io.js/v1.0.4/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:101:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1038:12)
gyp ERR! System Linux 2.6.32-431.29.2.el6.x86_64
gyp ERR! command "node" "/home/master/.nvm/versions/io.js/v1.0.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd ./node_modules/juice/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v1.0.4
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Linux 2.6.32-431.29.2.el6.x86_64
npm ERR! argv "/home/master/.nvm/versions/io.js/v1.0.4/bin/iojs" "/home/master/.nvm/versions/io.js/v1.0.4/bin/npm" "install" "contextify"
npm ERR! node v1.0.4
npm ERR! npm v2.3.0
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! ./node_modules/juice/node_modules/jsdom/node_modules/npm-debug.log
IO.js v1.0.3:
-
> [email protected] install ./node_modules/juice/node_modules/jsdom/node_modules/contextify
> node-gyp rebuild
child_process: customFds option is deprecated, use stdio instead.
make: Entering directory `./node_modules/juice/node_modules/jsdom/node_modules/contextify/build'
CXX(target) Release/obj.target/contextify/src/contextify.o
In file included from ../src/contextify.cc:3:
../node_modules/nan/nan.h:481: error: ‘NanNew’ declared as an ‘inline’ variable
../node_modules/nan/nan.h:481: warning: ‘always_inline’ attribute ignored
../node_modules/nan/nan.h:481: error: ‘v8::Local<v8::String> NanNew’ redeclared as different kind of symbol
../node_modules/nan/nan.h:475: error: previous declaration of ‘v8::Local<v8::String> NanNew(v8::String::ExternalStringResource*)’
../node_modules/nan/nan.h:481: error: ‘ExternalAsciiStringResource’ is not a member of ‘v8::String’
../node_modules/nan/nan.h:481: error: ‘resource’ was not declared in this scope
../node_modules/nan/nan.h: In function ‘bool _NanGetExternalParts(v8::Handle<v8::Value>, const char**, size_t*)’:
../node_modules/nan/nan.h:2103: error: ‘class v8::String’ has no member named ‘IsExternalAscii’
../node_modules/nan/nan.h:2104: error: expected initializer before ‘*’ token
../node_modules/nan/nan.h:2105: error: ‘ext’ was not declared in this scope
../node_modules/nan/nan.h:2105: error: ‘class v8::String’ has no member named ‘GetExternalAsciiStringResource’
make: *** [Release/obj.target/contextify/src/contextify.o] Error 1
make: Leaving directory `./node_modules/juice/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 (/home/master/.nvm/versions/io.js/v1.0.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1038:12)
gyp ERR! System Linux 2.6.32-431.29.2.el6.x86_64
gyp ERR! command "node" "/home/master/.nvm/versions/io.js/v1.0.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd ./node_modules/juice/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v1.0.3
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Linux 2.6.32-431.29.2.el6.x86_64
npm ERR! argv "/home/master/.nvm/versions/io.js/v1.0.3/bin/iojs" "/home/master/.nvm/versions/io.js/v1.0.3/bin/npm" "install" "contextify"
npm ERR! node v1.0.3
npm ERR! npm v2.2.0
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! ./node_modules/juice/node_modules/jsdom/node_modules/npm-debug.log
Works fine on Node v0.11.15
Funny enough, sudo worked:
> [email protected] install ./node_modules/juice/node_modules/jsdom/node_modules/contextify
> node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.11.14"
gyp WARN EACCES attempting to reinstall using temporary dev dir "./node_modules/juice/node_modules/jsdom/node_modules/contextify/.node-gyp"
child_process: customFds option is deprecated, use stdio instead.
make: Entering directory `./node_modules/juice/node_modules/jsdom/node_modules/contextify/build'
CXX(target) Release/obj.target/contextify/src/contextify.o
SOLINK_MODULE(target) Release/obj.target/contextify.node
SOLINK_MODULE(target) Release/obj.target/contextify.node: Finished
COPY Release/contextify.node
make: Leaving directory `./node_modules/juice/node_modules/jsdom/node_modules/contextify/build'
[email protected] contextify
├── [email protected]
└── [email protected]
I think this fixes it #154
Same issue here:
Using Node.js version v0.10.36
-
> [email protected] install /tmp/build.TxKIyVqOiq/node_modules/email-templates/node_modules/juice2/node_modules/jsdom/node_modules/contextify
> node-gyp rebuild
gyp WARN EACCES user "undefined" does not have permission to access the dev dir "/srv/data/.node-gyp/0.10.36"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
gyp: /tmp/.node-gyp/0.10.36/common.gypi not found (cwd: /tmp/build.TxKIyVqOiq/node_modules/email-templates/node_modules/juice2/node_modules/jsdom/node_modules/contextify) while reading includes of binding.gyp 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 (/opt/nodejs/0.10.36/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 3.14.29-grsec-paas-a8a76a9
gyp ERR! command "node" "/opt/nodejs/0.10.36/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/build.TxKIyVqOiq/node_modules/email-templates/node_modules/juice2/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v0.10.36
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
> [email protected] install /tmp/build.TxKIyVqOiq/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)
> [email protected] install /tmp/build.TxKIyVqOiq/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)
> [email protected] install /tmp/build.TxKIyVqOiq/node_modules/mongodb/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)
> [email protected] install /tmp/build.TxKIyVqOiq/node_modules/mongoose/node_modules/mongodb/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
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! System Linux 3.14.29-grsec-paas-a8a76a9
npm ERR! command "/opt/nodejs/0.10.36/bin/node" "/opt/nodejs/0.10.36/bin/npm" "install"
npm ERR! cwd /tmp/build.TxKIyVqOiq
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
-----> Building new application failed
-----> Aborting deployment
I'm referencing this to keep track: https://github.com/iojs/io.js/issues/456
I don't use IO.js, but I get the same issue. I can't deploy..
I think there are two issues referred to in this issue. One is that contextify does not compile on iojs 1.x / node 0.11.x. #154 should fix that.
Then I think there is user rights which you encounter @stepri. Could you try running the command with sudo?
Note that anyone that updated npm (npm -g install npm) in io.js will get contextify installation failed as node-gyp still doesn't officially support io.js (see https://github.com/TooTallNate/node-gyp/pull/564 for a PR in progress) and io.js bundles patched npm so that it works.
I get a different error installing contextify:
npm install
npm WARN package.json [email protected] No README data
npm WARN package.json [email protected] punycode is also the name of a node core module.
npm WARN package.json [email protected] No repository field.
npm WARN engine [email protected]: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"1.4.1","npm":"2.6.0"})
> [email protected] install <path>/node_modules/jest-cli/node_modules/jsdom/node_modules/contextify
> node-gyp rebuild
child_process: customFds option is deprecated, use stdio instead.
CXX(target) Release/obj.target/contextify/src/contextify.o
SOLINK_MODULE(target) Release/contextify.node
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/contextify.node] 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:267:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:169:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1044:12)
gyp ERR! System Darwin 14.1.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/siuying/workspace/ios/RelativesCalc/JavaScript/node_modules/jest-cli/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v1.4.1
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v1.4.1
npm ERR! npm v2.6.0
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.
Oddly, install manually with sudo will work.
Thanks @mzgol, I had updated npm and was having issues. Reinstalling iojs-v1.4.1 solved it.
contextify installs fine for me in io.js 1.8.1 but fails in 2.0.0:
> [email protected] install /Users/mgol/Documents/projects/public/jquery/jquery-master/node_modules/jsdom/node_modules/contextify
> node-gyp rebuild
CXX(target) Release/obj.target/contextify/src/contextify.o
In file included from ../src/contextify.cc:3:
In file included from ../node_modules/nan/nan.h:74:
In file included from ../node_modules/nan/nan_new.h:181:
../node_modules/nan/nan_implementation_12_inl.h:172:66: error: too many arguments to function call, expected at most 2, have 4
return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/Users/mgol/.node-gyp/2.0.0/deps/v8/include/v8.h:4188:3: note: 'New' declared here
static Local<Signature> New(
^-
1 error 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 (/Users/mgol/.nvm/versions/io.js/v2.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:169:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1009:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "/Users/mgol/.nvm/versions/io.js/v2.0.0/bin/iojs" "/Users/mgol/.nvm/versions/io.js/v2.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/mgol/Documents/projects/public/jquery/jquery-master/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v2.0.0
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Darwin 14.3.0
npm ERR! argv "/Users/mgol/.nvm/versions/io.js/v2.0.0/bin/iojs" "/Users/mgol/.nvm/versions/io.js/v2.0.0/bin/npm" "i"
npm ERR! node v2.0.0
npm ERR! npm v2.9.0
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/mgol/Documents/projects/public/jquery/jquery-master/npm-debug.log
@mzgol - I just published a version that should work with io.js 2.0.0. Let me know if you're still having issues.
Having this same issue with io.js 2.0.2
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: 404 status code downloading tarball
gyp ERR! stack at Request.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:246:14)
gyp ERR! stack at emitOne (events.js:82:20)
gyp ERR! stack at Request.emit (events.js:169:7)
gyp ERR! stack at Request.onRequestResponse (/usr/lib/node_modules/npm/node_modules/request/request.js:1156:10)
gyp ERR! stack at emitOne (events.js:77:13)
gyp ERR! stack at ClientRequest.emit (events.js:169:7)
gyp ERR! stack at HTTPParser.parserOnIncomingClient (_http_client.js:414:21)
gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23)
gyp ERR! stack at Socket.socketOnData (_http_client.js:304:20)
gyp ERR! stack at emitOne (events.js:77:13)
gyp ERR! System Linux 3.16.7.11-1-MANJARO
gyp ERR! command "/usr/bin/iojs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/tyrell/Desktop/articles/getting started with React/article src/node_modules/jest-cli/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v2.0.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Linux 3.16.7.11-1-MANJARO
npm ERR! argv "/usr/bin/iojs" "/usr/bin/npm" "--python=python2.7" "install" "jest-cli" "--save-dev"
npm ERR! node v2.0.2
npm ERR! npm v2.10.0
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! /home/tyrell/Desktop/articles/getting started with React/article src/npm-debug.log