【问题标题】:npm - Fail to install. What is 'make'?npm - 安装失败。什么是“制作”?
【发布时间】: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

【问题讨论】:

标签: node.js npm


【解决方案1】:

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

我在安装 mqtt 包时遇到了这个问题

make 是一个命令行的构建工具。

安装:

在 CENTOS 7 和 RHEL 7 上:

运行 yum install -y make gcc*

在 Ubuntu(我遇到问题的地方)上,此命令有效:

$ sudo apt-get install build-essential

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

【讨论】:

    【解决方案2】:

    什么是“制作”?看到这个:http://en.wikipedia.org/wiki/Make_(software)

    为 SmartOS 安装:pkg in gmake

    要继续安装 bcrypt:重启机器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-02-04
      • 2012-12-07
      • 1970-01-01
      • 1970-01-01
      • 2018-06-06
      相关资源
      最近更新 更多