sharp: node-gyp rebuild fails on node 6.9.1 and 7.1.0;
I am not sure if node is at fault of something else but I can’t seem to be able to install sharp on both node 6.9.1 and 7.1.0; Also i tried to install bcrypt which also uses node-gyp and it worked so am not sure whats at fault here.
npm verb lifecycle sharp@0.16.2~install: unsafe-perm in lifecycle true
npm verb lifecycle sharp@0.16.2~install: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/home/bharagavkonkathi/DayUsers/Bhargav/Official/projects/Git/bwt/server/node_modules/sharp/node_modules/.bin:/home/bharagavkonkathi/DayUsers/Bhargav/Official/projects/Git/bwt/server/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
npm verb lifecycle sharp@0.16.2~install: CWD: /home/bharagavkonkathi/DayUsers/Bhargav/Official/projects/Git/bwt/server/node_modules/sharp
npm info lifecycle sharp@0.16.2~install: Failed to exec install script
npm verb unlock done using /home/bharagavkonkathi/.npm/_locks/staging-0aae9fe589cf4cf9.lock for /home/bharagavkonkathi/DayUsers/Bhargav/Official/projects/Git/bwt/server/node_modules/.staging
npm verb stack Error: sharp@0.16.2 install: `node-gyp rebuild`
npm verb stack Exit status 1
npm verb stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
npm verb stack at emitTwo (events.js:106:13)
npm verb stack at EventEmitter.emit (events.js:191:7)
npm verb stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
npm verb stack at emitTwo (events.js:106:13)
npm verb stack at ChildProcess.emit (events.js:191:7)
npm verb stack at maybeClose (internal/child_process.js:885:16)
npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
npm verb pkgid sharp@0.16.2
npm verb cwd /home/bharagavkonkathi/DayUsers/Bhargav/Official/projects/Git/bwt/server
npm ERR! Linux 3.13.0-32-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--verbose" "sharp"
npm ERR! node v7.2.0
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! sharp@0.16.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.16.2 install script 'node-gyp rebuild'.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (8 by maintainers)
Does installing the latest code from source control (to include the fix for #614) work?
npm install lovell/sharp