【发布时间】:2015-09-08 20:59:15
【问题描述】:
当您是新手时,您会问一些愚蠢的问题。在问这里之前,我已经尽我所能去谷歌和堆栈。有一个类似的问题,但没有明确的答案:npm failed to install time with make not found error
我尝试“npm install”但出现错误。与“制作”有关。什么是“制作”?我需要安装什么才能获得“make”。我的系统是nodejs SmartOS。
bcrypt@0.6.0 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
【问题讨论】:
-
尝试安装成这种方式->ppa:chris-lea/node.js,其中包括
npm