luciotato / waitfor

Sequential programming for node.js, end of callback hell / pyramid of doom
MIT License
531 stars 29 forks source link

Failed at the fibers@1.0.1 install script. #21

Closed rlaferla closed 9 years ago

rlaferla commented 10 years ago

On OSX Mavericks 10.9.4, I can't install:

% npm install wait.for /

fibers@1.0.1 install /Users/rlaferla/Developer/Tools/node_modules/wait.for/node_modules/fibers node ./build.js

child_process: customFds option is deprecated, use stdio instead. gyp ERR! configure error gyp ERR! stack Error: "pre" versions of node cannot be installed, use the --nodedir flag instead gyp ERR! stack at install (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:66:16) gyp ERR! stack at Object.self.commands.(anonymous function) as install gyp ERR! stack at getNodeDir (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:152:20) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:95:9 gyp ERR! stack at ChildProcess.exithandler (child_process.js:722:7) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at maybeClose (child_process.js:999:16) gyp ERR! stack at Socket. (child_process.js:1167:11) gyp ERR! stack at Socket.emit (events.js:107:17) gyp ERR! stack at Pipe.close (net.js:461:12) gyp ERR! System Darwin 13.3.0 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /MyDirectory/node_modules/wait.for/node_modules/fibers gyp ERR! node -v v0.13.0-pre gyp ERR! node-gyp -v v0.13.1 gyp ERR! not ok Build failed npm ERR! fibers@1.0.1 install: node ./build.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the fibers@1.0.1 install script. npm ERR! This is most likely a problem with the fibers package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node ./build.js npm ERR! You can get their info via: npm ERR! npm owner ls fibers npm ERR! There is likely additional logging output above.

luciotato commented 10 years ago

seems to be a problem with Fibers, which is a binary node add-on (npm tries to compile Fibers on your system)

try to install Fibers -g first sudo npm install -g fibers

https://www.google.com/search?q=node-fibers+mac+osx&safe=off&es_sm=93&source=lnt&tbs=qdr:y&sa=X&ei=Wt73U9_gFs6-sQTx0YHQCQ&ved=0CBUQpwU&biw=1211&bih=763

other options: use wait.for-ES6