'node-gyp rebuild'解决办法(ubuntu)
2016-07-14 00:00
387 查看
make: g++:命令未找到 make: *** [Release/obj.target/bufferutil/src/bufferutil.o] 错误 127 make:离开目录“/home/lewis/code/Ghost/node_modules/bufferutil/build” gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23) 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 Linux 3.13.0-71-generic 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 /home/lewis/code/Ghost/node_modules/bufferutil gyp ERR! node -v v4.2.0 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok npm ERR! Linux 3.13.0-71-generic npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" npm ERR! node v4.2.0 npm ERR! npm v2.14.7 npm ERR! code ELIFECYCLE npm ERR! bufferutil@1.2.1 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bufferutil@1.2.1 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the bufferutil 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 their info via: npm ERR! npm owner ls bufferutil npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /home/lewis/code/Ghost/npm-debug.log
安装g++即可:
apt-get -y install g++
相关文章推荐
- ubuntu下nvm,node以及npm的安装与使用
- NodeJs从入门到高手常用资源查询
- leetcode---Populating Next Right Pointers in Each Node---二叉树、广搜
- ubuntu 安装nodejs 4.X版本以上
- 开始node之旅
- nodejs javascript 实现随机数种子的几种方法
- node 单线程异步非阻塞
- node 单线程异步非阻塞
- zookeeper可视化监控node-zk-browser
- 集群管理 secondaryNameNode和NameNode(转)
- NodeJS学习系列课程笔记(NodeJs Assert断言测试)
- node 编译遇到 Exit status 137问题解决
- nodeJs个人笔记
- 【笔记】NodeMcu做为Client与Server通信(未整理)
- nodejs模块 node-schedule使用,定时任务
- NodeJS学习系列课程笔记(NodeJs 快速上手+用法示例)
- node-sass 在Mac中安装报错
- Node.js+Socket.IO实现的WebSocket群聊天室源码
- LeetCode:Swap Nodes in Pairs
- React+Nodejs+Socket+Webpack版你画我猜