[Node.js] sharp@0.15.1 install: `node-gyp rebuild` 문제

2016. 8. 16. 22:47서버 프로그래밍




gyp ERR! configure error 

gyp ERR! stack Error: `gyp` failed with exit code: 1

gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305: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 15.5.0

gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

gyp ERR! cwd /Users/plurry/dophoto/node_modules/sharp

gyp ERR! node -v v4.4.7

gyp ERR! node-gyp -v v3.3.1

gyp ERR! not ok 

npm info sharp@0.15.1 Failed to exec install script

npm ERR! Darwin 15.5.0

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-d"

npm ERR! node v4.4.7

npm ERR! npm  v2.15.8

npm ERR! code ELIFECYCLE


npm ERR! sharp@0.15.1 install: `node-gyp rebuild`

npm ERR! Exit status 1

npm ERR! 

npm ERR! Failed at the sharp@0.15.1 install script 'node-gyp rebuild'.

npm ERR! This is most likely a problem with the sharp 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 sharp

npm ERR! Or if that isn't available, you can get their info via:

npm ERR! 

npm ERR!     npm owner ls sharp

npm ERR! There is likely additional logging output above.

npm info preuninstall sharp@0.15.1

npm info uninstall sharp@0.15.1

npm info postuninstall sharp@0.15.1


-----------------


(1) homebrew 설치


http://brew.sh/index_ko.html



/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"



(2) libvips 설치


http://sharp.dimens.io/en/stable/install/

brew install homebrew/science/vips