CNode

npm install zlib 安装出错

问答
Yyuenshui发布于10 年前最后回复10 年前2 回复10879 浏览0 收藏

npm install zlib

|

zlib@1.0.5 preinstall /Home/Documents/website/findme/node_modules/zlib node-waf clean || true; node-waf configure build

sh: node-waf: command not found sh: node-waf: command not found npm ERR! Linux 2.6.32-573.12.1.el6.x86_64 npm ERR! argv "/usr/local/node/bin/node" "/bin/npm" "install" "zlib" npm ERR! node v4.2.4 npm ERR! npm v2.14.12 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn

npm ERR! zlib@1.0.5 preinstall: node-waf clean || true; node-waf configure build npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the zlib@1.0.5 preinstall script 'node-waf clean || true; node-waf configure build'. npm ERR! This is most likely a problem with the zlib package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-waf clean || true; node-waf configure build npm ERR! You can get their info via: npm ERR! npm owner ls zlib npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /Home/Documents/website/findme/npm-debug.log

查看回复

回复 (2)

M
mengkeys#1·10 年前

@yuenshui Node.js官方文档zlib

Y
yuenshui#2·10 年前
引用 mengkeys@yuenshui Node.js官方文档zlib

@mengkeys 谢谢,原来内置了

参与回复
登录后即可参与回复。登录