Troubled for a long time, it is not good to find solution, so record, hope to help to meet with me the same problem people. The error is as follows:
Make: g++: Command not found Make: * * * [RELEASE/OBJ.TARGET/BUFFERUTIL/SRC/BUFFERUTIL.O] Error127 Make: Leave directory "/home/lewis/code/ghost/node_modules/bufferutil/build "Gyp ERR!Build Error Gyp ERR! Stack Error: ' Make' failed with exit code:2Gyp ERR! Stack at Childprocess.onexit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js: the: at) Gyp ERR! Stack at Emittwo (events.js: the: -) Gyp ERR! Stack at Childprocess.emit (events.js:172:7) Gyp ERR! Stack at Process.childprocess._handle.onexit (internal/child_process.js: $: A) Gyp ERR! System Linux3.13.0- in-Genericgyp ERR! Command"/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "Rebuild"Gyp ERR! cwd/home/lewis/code/ghost/node_modules/Bufferutilgyp ERR! NODE-V v4.2.0Gyp ERR! NODE-GYP-V v3.0.3Gyp ERR!Not OK npm ERR! Linux3.13.0- in-GENERICNPM ERR! Argv"/usr/local/bin/node" "/USR/LOCAL/BIN/NPM" "Install"NPM ERR! Node v4.2.0NPM ERR! NPM v2.14.7NPM ERR!Code ELIFECYCLENPM ERR! [Email protected]1.2.1 Install: ' node-gyp rebuild ' npm ERR! Exit status1NPM ERR!NPM ERR! Failed at the [email protected]1.2.1 InstallScript'Node-gyp Rebuild'. NPM ERR!likely a problem with the Bufferutil package,npm ERR!Not with npm itself.npm ERR!Tell the author, fails on your SYSTEM:NPM ERR! node-Gyp rebuildnpm ERR! You can get theirInfoVIA:NPM ERR! NPM ownerlsBUFFERUTILNPM ERR!There is likely additional logging output ABOVE.NPM ERR! Please include the followingfileWith any support request:npm ERR! /home/lewis/code/ghost/npm-debug.log
Install g++:
Install g++
' Node-gyp rebuild ' solution (Ubuntu)