Sharp: Failed at the [email protected] install script.

Created on 7 Dec 2017  路  1Comment  路  Source: lovell/sharp

Hi. I can't install sharp on Xubuntu

make: Entering directory '/home/ssss/CODE/cryptomag.online/api-cms-server/node_modules/sharp/build'
  TOUCH Release/obj.target/libvips-cpp.stamp
  CXX(target) Release/obj.target/sharp/src/common.o
make: g++: Command not found
sharp.target.mk:119: recipe for target 'Release/obj.target/sharp/src/common.o' failed
make: *** [Release/obj.target/sharp/src/common.o] Error 127
make: Leaving directory '/home/ssss/CODE/cryptomag.online/api-cms-server/node_modules/sharp/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.10.0-28-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ssss/CODE/cryptomag.online/api-cms-server/node_modules/sharp
gyp ERR! node -v v8.9.2
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ssss/.npm/_logs/2017-12-07T16_39_32_377Z-debug.log

I tried to run with --unsafe-perm, didn't help.

node v8.9.2

Most helpful comment

Please ensure the prerequisites are installed. g++: Command not found suggests you need to run sudo apt-get install build-essential.

>All comments

Please ensure the prerequisites are installed. g++: Command not found suggests you need to run sudo apt-get install build-essential.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

genifycom picture genifycom  路  3Comments

terbooter picture terbooter  路  3Comments

paulieo10 picture paulieo10  路  3Comments

janaz picture janaz  路  3Comments

jaekunchoi picture jaekunchoi  路  3Comments