1

我正在尝试在 ubuntu 11.10 上安装 now.js(如果重要的话,可以在带有 wubi 的 Windows 上运行)。我已经很好地下载并安装了 node、npm 和 socket.io,但sudo npm install now由于某种原因失败了。我尝试过使用和不使用 sudo,尝试全局安装它,同样的错误。Make安装得很好...... node-proxy包有问题吗?对于它的价值,尝试npm install node-proxy会产生类似的错误。

节点版本 0.6.2
npm 版本 1.0.106
ubuntu 11.10 (windows with wubi)

当我现在尝试安装时,日志显示:

npm WARN node-proxy@0.5.2 package.json: bugs['web'] should probably be bugs['url']

> node-proxy@0.5.2 install /home/my_name/node_modules/now/node_modules/node-proxy
> make

BUILDING: C++ Component
/bin/sh: node-waf: not found
cp: cannot stat `src/build/*/node-proxy.node': No such file or directory
make: *** [all] Error 1
npm ERR! error installing node-proxy@0.5.2 Error: node-proxy@0.5.2 install: `make`
npm ERR! error installing node-proxy@0.5.2 `sh "-c" "make"` failed with 2
npm ERR! error installing node-proxy@0.5.2     at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing node-proxy@0.5.2     at ChildProcess.emit (events.js:70:17)
npm ERR! error installing node-proxy@0.5.2     at maybeExit (child_process.js:359:16)
npm ERR! error installing node-proxy@0.5.2     at Process.onexit (child_process.js:395:5)
npm ERR! error installing now@0.7.6 Error: node-proxy@0.5.2 install: `make`
npm ERR! error installing now@0.7.6 `sh "-c" "make"` failed with 2
npm ERR! error installing now@0.7.6     at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing now@0.7.6     at ChildProcess.emit (events.js:70:17)
npm ERR! error installing now@0.7.6     at maybeExit (child_process.js:359:16)
npm ERR! error installing now@0.7.6     at Process.onexit (child_process.js:395:5)
npm ERR! node-proxy@0.5.2 install: `make`
npm ERR! `sh "-c" "make"` failed with 2
npm ERR! 
npm ERR! Failed at the node-proxy@0.5.2 install script.
npm ERR! This is most likely a problem with the node-proxy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     make
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-proxy
npm ERR! There is likely additional logging output above.
npm ERR! 
npm ERR! System Linux 3.0.0-13-generic
npm ERR! command "node" "/usr/bin/npm" "install" "now"
npm ERR! cwd /home/my_name
npm ERR! node -v v0.6.2
npm ERR! npm -v 1.0.106
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/my_name/npm-debug.log
npm not ok
4

1 回答 1

1

问题似乎node-waf是缺少。

node-waf 是一个包含在 node 中的工具,它允许编译二进制模块,例如 node-proxy。

You can test to see if node-waf is available simply by typing node-waf into the terminal to see if the command can be found. If not, you will need to reinstall node (run make install again) to make sure node-waf is available.

于 2011-11-28T22:29:56.297 回答