Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io.js support #49

Closed
fundon opened this issue Jan 17, 2015 · 10 comments
Closed

io.js support #49

fundon opened this issue Jan 17, 2015 · 10 comments

Comments

@fundon
Copy link

fundon commented Jan 17, 2015

nodejs/node#456

> fsevents@0.3.4 install /usr/local/lib/node_modules/6to5/node_modules/chokidar/node_modules/fsevents
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp info using node-gyp@1.0.2
gyp info using node@1.0.1 | darwin | x64
gyp http GET http://nodejs.org/dist/v1.0.1/node-v1.0.1.tar.gz
gyp http 404 http://nodejs.org/dist/v1.0.1/node-v1.0.1.tar.gz
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/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:246:14)
gyp ERR! stack     at Request.emit (events.js:117:20)
gyp ERR! stack     at Request.onRequestResponse (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1255:10)
gyp ERR! stack     at ClientRequest.emit (events.js:95:17)
gyp ERR! stack     at HTTPParser.parserOnIncomingClient (_http_client.js:399:21)
gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:89:23)
gyp ERR! stack     at Socket.socketOnData (_http_client.js:290:20)
gyp ERR! stack     at Socket.emit (events.js:95:17)
gyp ERR! stack     at readableAddChunk (_stream_readable.js:143:16)
gyp ERR! stack     at Socket.Readable.push (_stream_readable.js:106:10)
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 /usr/local/lib/node_modules/6to5/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v1.0.1
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
@es128
Copy link
Contributor

es128 commented Jan 17, 2015

works for me:

> fsevents@0.3.4 install /Users/eshanker/Code/chokidar/node_modules/fsevents
> node-gyp rebuild

child_process: customFds option is deprecated, use stdio instead.
  SOLINK_MODULE(target) Release/.node
  SOLINK_MODULE(target) Release/.node: Finished
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node
  SOLINK_MODULE(target) Release/fse.node: Finished
fsevents@0.3.4 node_modules/fsevents
└── nan@1.5.1
gyp info using node-gyp@1.0.2
gyp info using node@1.0.1 | darwin | x64

Looks like you're having an environment-specific problem - your iojs install didn't clean out your old node stuff:

gyp http GET http://nodejs.org/dist/v1.0.1/node-v1.0.1.tar.gz
gyp http 404 http://nodejs.org/dist/v1.0.1/node-v1.0.1.tar.gz

@fundon
Copy link
Author

fundon commented Jan 17, 2015

I cleaned up ~/.node-gyp/ & ~/.npm.
Then node-gyp rebuild, no success.

@es128
Copy link
Contributor

es128 commented Jan 17, 2015

the question is why is node-gyp trying to download the node tarball from nodejs.org

try running sed -n 42p /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js

if the result isn't var distUrl = gyp.opts['dist-url'] || gyp.opts.disturl || 'https://iojs.org/dist' then that's the source of the problem.

Perhaps npm i -g npm will fix it for you.

@fundon
Copy link
Author

fundon commented Jan 18, 2015

@es128 thanks

I installed the latest npm@2.2.0. Nothing change.

result

λ ~ sed -n 42p /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js
  var distUrl = gyp.opts['dist-url'] || gyp.opts.disturl || 'http://nodejs.org/dist'

See nodejs/node#433

@es128
Copy link
Contributor

es128 commented Jan 18, 2015

Did you try doing nodejs/node#433 (comment) ?

@es128
Copy link
Contributor

es128 commented Jan 18, 2015

Actually my suggestion is to just reinstall io.js. Looks like upgrading/changing the version of npm that gets bundled with the io.js installer is what caused the problem to begin with, and I'm not sure what other way there is to get that specially patched version.

@fundon
Copy link
Author

fundon commented Jan 18, 2015

npm install pangyp -g very useful. :)

@fundon fundon closed this as completed Jan 18, 2015
@dsxack
Copy link

dsxack commented Aug 12, 2015

@fundon,

I do this:

npm install --save-dev forever

> fsevents@0.3.8 install /Users/dsxack/workspace/src/unpublished/forever-test/node_modules/forever/node_modules/forever-monitor/node_modules/chokidar/node_modules/fsevents
> node-gyp rebuild

gyp: /Users/dsxack/.node-gyp/3.0.0/common.gypi not found (cwd: /Users/dsxack/workspace/src/unpublished/forever-test/node_modules/forever/node_modules/forever-monitor/node_modules/chokidar/node_modules/fsevents) 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 (/Users/dsxack/.nvm/versions/io.js/v3.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:357:16)
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.4.0
gyp ERR! command "/Users/dsxack/.nvm/versions/io.js/v3.0.0/bin/iojs" "/Users/dsxack/.nvm/versions/io.js/v3.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/dsxack/workspace/src/unpublished/forever-test/node_modules/forever/node_modules/forever-monitor/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v3.0.0
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok 
npm WARN optional dep failed, continuing fsevents@0.3.8

How pangyp can helps me?

iojs --version
v3.0.0

npm --version
2.13.4

@fundon
Copy link
Author

fundon commented Aug 12, 2015

@dsxack try this

$ npm install pangyp -g 
$ npm install --save-dev forever --node-gyp=pangyp

@dsxack
Copy link

dsxack commented Aug 12, 2015

@fundon, thanks, it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants