【发布时间】:2015-12-01 22:05:09
【问题描述】:
运行时:
nvm install iojs-v2
我收到以下错误:
######################################################################## 100.0%
curl: (7) Failed to connect to localhost port 80: Connection refused
grep: /Volumes/Macintosh HD/Users/ev_blurbs/.nvm/bin/iojs-v2.5.0-darwin-x64/iojs-v2.5.0-darwin-x64.tar.gz: No such file or directory
Binary download failed, trying source.
Installing iojs from source is not currently supported
我不确定 curl 命令失败的原因。任何帮助将非常感激。谢谢!
更新:
我注释掉了我的/etc/host 文件中的所有本地主机记录。现在运行nvm install iojs-v2 返回:
######################################################################## 100.0%
curl: (47) Maximum (50) redirects followed
grep: /Volumes/Macintosh HD/Users/ev_blurbs/.nvm/bin/iojs-v2.5.0-darwin-x64/iojs-v2.5.0-darwin-x64.tar.gz: No such file or directory
Binary download failed, trying source.
Installing iojs from source is not currently supported
更新 2:
我使用的是 OSX 10.10.5。 IOJS 正在尝试使用 Darwin。我认为这是正确的,但想列出这一点。
【问题讨论】:
-
这个错误看起来很容易解释。你试过从他们的网站下载二进制文件吗?
-
我正在研究下载二进制文件并使用它(还没有运气)。但我希望能够解决错误并在将来使用 nvm。
-
我什至不确定该命令是如何执行任何操作的,因为这不是公开发布的 npm 包 npmjs.com/search?q=iojs-v2 。你在哪里找到包名的?
-
nvm 不同于 npm - github.com/creationix/nvm。该命令只是说获取最新的第二版。我也尝试过指定版本(即 2.5.0)