错误:未找到:制作 [英] Error: not found: make

查看:91
本文介绍了错误:未找到:制作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法安装任何需要 node-gyp 的软件包.错误信息是这样的

<前>$ npm install node-protobuf在 22:43:57 尝试注册请求尝试 1 的信息http 获取 https://registry.npmjs.org/node-protobufhttp 200 https://registry.npmjs.org/node-protobufnpm http GET https://registry.npmjs.org/node-protobuf/-/node-protobuf-1.0.8.tgznpm http 200 https://registry.npmjs.org/node-protobuf/-/node-protobuf-1.0.8.tgz> node-protobuf@1.0.8 安装/home/whs/node_modules/node-protobuf> 节点 gyp 重建吉普错误!构建错误吉普错误!堆栈错误:未找到:制作吉普错误!堆栈在 F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:43:28)吉普错误!堆栈在 E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:46:29)吉普错误!堆栈在/usr/local/lib/node_modules/npm/node_modules/which/which.js:57:16吉普错误!堆栈在 Object.oncomplete (fs.js:107:15)吉普错误!系统 Linux 2.6.32-5-amd64吉普错误!命令节点"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"重建"吉普错误!cwd/home/whs/node_modules/node-protobuf吉普错误!节点 -v v0.10.22吉普错误!节点-gyp -v v0.12.1吉普错误!不好npm 错误!node-protobuf@1.0.8 安装:`node-gyp 重建`npm 错误!退出状态 1npm 错误!npm 错误!在 node-protobuf@1.0.8 安装脚本中失败.npm 错误!这很可能是 node-protobuf 包的问题,npm 错误!不是 npm 本身.npm 错误!告诉作者这在您的系统上失败:npm 错误!节点gyp重建npm 错误!您可以通过以下方式获取他们的信息:npm 错误!npm 所有者 ls node-protobufnpm 错误!上面可能有额外的日志输出.npm 错误!系统 Linux 2.6.32-5-amd64npm 错误!命令节点"/usr/local/bin/npm"安装"节点protobuf"npm 错误!cwd/家/whs/npm 错误!节点 -v v0.10.22npm 错误!npm -v 1.3.15npm 错误!代码生命周期npm 错误!npm 错误!可以在以下位置找到其他日志记录详细信息:npm 错误!/home/whs/npm-debug.lognpm 错误!不行 代码 0

我也尝试了 protobuf 包并得到了完全相同的结果.

大多数搜索结果表明此错误是由于缺少 make 而导致的,但在我的情况下,我已经安装了 make.节点安装甚至是在机器上手动从源代码构建的.

附加信息:

  • 路径:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
  • Make:GNU Make 3.81 安装在 /usr/bin/make(来自官方 Debian 软件包)
  • 发行版:Debian 6.0.8
  • 架构:amd64
  • 构建必需包:已安装
  • 节点:从源代码手动构建
  • 安装非 gyp 包:正常工作

解决方案

我发现我在 /usr/bin/make 上设置了 0754 权限,并且在 which 中存在错误> 由于用户的 primary 组与 make 的不同,因此跳过文件.我已经在 node-which 中提交了一个错误.

I can't install any packages that requires node-gyp. The error message goes like this

$ npm install node-protobuf
info trying registry request attempt 1 at 22:43:57
http GET https://registry.npmjs.org/node-protobuf
http 200 https://registry.npmjs.org/node-protobuf
npm http GET https://registry.npmjs.org/node-protobuf/-/node-protobuf-1.0.8.tgz
npm http 200 https://registry.npmjs.org/node-protobuf/-/node-protobuf-1.0.8.tgz

> node-protobuf@1.0.8 install /home/whs/node_modules/node-protobuf
> node-gyp rebuild

gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack     at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:43:28)
gyp ERR! stack     at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:46:29)
gyp ERR! stack     at /usr/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 Linux 2.6.32-5-amd64
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/whs/node_modules/node-protobuf
gyp ERR! node -v v0.10.22
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm ERR! node-protobuf@1.0.8 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-protobuf@1.0.8 install script.
npm ERR! This is most likely a problem with the node-protobuf 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 node-protobuf
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 2.6.32-5-amd64
npm ERR! command "node" "/usr/local/bin/npm" "install" "node-protobuf"
npm ERR! cwd /home/whs/
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.15
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/whs/npm-debug.log
npm ERR! not ok code 0

I also tried the protobuf package and got the exact same result.

Most search result says that this error is from missing make but in my case I have make installed. The node installation is even built from source manually on the machine.

Additional info:

  • Path: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
  • Make: GNU Make 3.81 installed in /usr/bin/make (from official Debian package)
  • Distro: Debian 6.0.8
  • Arch: amd64
  • Build-essential package: installed
  • Node: Manually built from source
  • Installation of non-gyp packages: work normally

解决方案

I have found that I set 0754 permission on /usr/bin/make and a bug in which skip the file due to user's primary group is not the same as make's. I have filed a bug in node-which.

这篇关于错误:未找到:制作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆