2014-04-28 127 views
0

当你是一个新手,你会问愚蠢的问题。我已经尽力了Google,并在询问这里之前先堆叠起来。有一个类似的问题,但没有明确的答案:npm failed to install time with make not found errornpm - 无法安装。什么是'make'?

我试图'npm安装',并得到一个错误。与'make'有关。什么是'make'?我需要安装什么来获得'make'。我的系统是nodejs SmartOS。

[email protected] install /home/scotch/node_modules/bcrypt 
node-gyp rebuild 
gyp ERR! build error 
gyp ERR! stack Error: not found: make 
gyp ERR! stack at F (/opt/local/lib/node_modules/npm/node_modules/which/which.js:43:28) 
gyp ERR! stack at E (/opt/local/lib/node_modules/npm/node_modules/which/which.js:46:29) 
gyp ERR! stack at /opt/local/lib/node_modules/npm/node_modules/which/which.js:57:16 
gyp ERR! stack at Object.oncomplete (fs.js:107:15) 
gyp ERR! System SunOS 5.11 
gyp ERR! command "node" "/opt/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 
gyp ERR! cwd /home/scotch/node_modules/bcrypt 
gyp ERR! node -v v0.10.24 
gyp ERR! node-gyp -v v0.12.1 
gyp ERR! not ok 
+0

尝试安装到这种方式 - > [ppa:chris-lea/node.js](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager),这包括'npm' – aldanux

回答

0

要总结一下我在这里学到:npm failed to install time with make not found error

我有这个问题,在安装MQTT包

化妆是命令行构建工具。

要安装:

在CentOS 7和RHEL 7:

运行yum安装-y让GCC *

在Ubuntu(在那里我有我的问题)这个命令的工作:

$ sudo apt-get install build-essential

此外,我不确定这是否有必要,但我在重新安装前删除了失败的软件包。