2016-03-03 161 views
1

我無法在我的Mac上安裝fabric.js。無法在Mac OS X中安裝Fabric.js El Capitan

npm ERR! Darwin 15.2.0 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "fabric" 
npm ERR! node v4.2.1 
npm ERR! npm v3.8.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! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the canvas 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 information on how to open an issue for this project with: 
npm ERR!  npm bugs canvas 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls canvas 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /Users/AirShaos/Documents/dev/prospace/repo/prospace_strongloop_cms/npm-debug.log 
npm ERR! code 1 

該錯誤基本上與'node-gyp'有關,我根本不知道它。我的節點版本是4.2.1,npm版本是3.8.0。有沒有人遇到過這個問題?

回答

相關問題