' Node-gyp rebuild ' solution (Ubuntu)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.