node.js - npm install : node-waf not found. 怎么办?

标签 node.js

使用 Node -v v0.10.29,npm -v 1.4.14 (http://ppa.launchpad.net/chris-lea/node.js/ubuntu)

在对项目进行“npm install”时,“zlib@1.0.5 preinstall”总是喊“sh: 1: node-waf: not found”

我已经看到一些关于同一件事的其他问题,但我仍然不知道我必须做什么才能使“npm install”工作。

谢谢。

最佳答案

node-waf 包已被 node-gyp 替换,这就是为什么您会收到 not found 错误。该软件包不再可用:https://www.npmjs.org/search?q=node-waf

您要安装的 zlib 软件包多年未更新。 Node.js 内置了对 Zlib 的支持,更多详细信息请参见手册:Zlib .

关于node.js - npm install : node-waf not found. 怎么办?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24830995/

相关文章:

javascript - Node 中的 RequireJS 因使用插件的依赖项而失败(例如使用 use.js)

javascript - 使 javascript 字符串 sql 友好

node.js - 在后端有条件地更新/删除文档。我是不是该?我是否分配 PUT、POST 或 DELETE http 方法?

node.js - 如何批量删除书架中的 "upsert"?

node.js - 本地 eventEmitter 监听全局 eventEmitter

node.js - 从 Promise block 返回函数值

javascript - typescript 错误 : Reserved word 'this' used as name

node.js - ASIHttpRequest/node.js/heroku : "Client closed connection before receiving entire response"

node.js - Angular2 http.post 不工作

javascript - typescript /Knex : Cannot use import statement outside a module