npm install fibers shows error

Jan picture Jan · Jul 9, 2014 · Viewed 42k times · Source

When i try to install fibers using npm install fibers i've got following error, Also i tried with other solutions in the stack overflow but none of them is helped, please help

Iam using OSX 10.8.5

> [email protected] install /usr/local/lib/node_modules/fibers
> node ./build.js

gyp ERR! build error 
gyp ERR! stack Error: not found: make
gyp ERR! stack     at F    (/usr/local/lib/node_modules/npm/node_modules/which/which.js:43:28)
gyp ERR! stack     at E    (/usr/local/lib/node_modules/npm/node_modules/which/which.js:46:29)
gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/which/which.js:57:16
gyp ERR! stack     at Object.oncomplete (fs.js:107:15)
gyp ERR! System Darwin 12.5.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/fibers
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok 
Build failed
npm ERR! [email protected] install: `node ./build.js`
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 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.

npm ERR! System Darwin 12.5.0
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "[email protected]" "-g"
npm ERR! cwd /Users/mac/Documents/node/node-fibers
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR!  
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/mac/Documents/node/node-fibers/npm-debug.log
npm ERR! not ok code 0

Answer

ASHISH RANJAN picture ASHISH RANJAN · Mar 23, 2017

This worked for me:

npm install --global --production windows-build-tools    
npm install --global node-gyp