nowjs/node-proxy 无法在 ubuntu 11.10 上安装 [英] nowjs/node-proxy fails to install on ubuntu 11.10

查看:28
本文介绍了nowjs/node-proxy 无法在 ubuntu 11.10 上安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to install now.js on ubuntu 11.10 (running on windows with wubi, if that matters). I've downloaded and installed node, npm, and socket.io just fine, but sudo npm install now fails for some reason. I've tried with and without sudo, tried installing it globally, same error. Make is installed just fine...is it some problem with the node-proxy package? For what it's worth, trying npm install node-proxy produces a similar error.

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

node version 0.6.2
npm version 1.0.106
ubuntu 11.10 (windows with wubi)

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

The log reads, when I try to install now:

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

推荐答案

问题似乎是缺少 node-waf.

node-waf 是 node 附带的一个工具,它允许编译二进制模块,例如 node-proxy.

node-waf is a tool that is included with node which allows compiling binary modules, such as node-proxy.

您可以通过在终端中输入 node-waf 以查看是否可以找到命令来测试 node-waf 是否可用.如果没有,您将需要重新安装 node(再次运行 make install)以确保 node-waf 可用.

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.

这篇关于nowjs/node-proxy 无法在 ubuntu 11.10 上安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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