无法在Ubuntu VM上安装陨石

前端之家收集整理的这篇文章主要介绍了无法在Ubuntu VM上安装陨石前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我运行Win7并在Oracle VM VirtualBox 4.3.6中安装Ubuntu 12.04.3.

我做的第一件事是尝试安装陨石,但得到以下错误

npm install -g meteorite
npm http GET https://registry.npmjs.org/meteorite

npm ERR! Error: Failed to fetch from registry: meteorite
npm ERR!     at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR!     at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR!     at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR!     at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR!     at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)
npm ERR!     at Request.emit (events.js:88:20)
npm ERR!     at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)
npm ERR!     at ClientRequest.emit (events.js:67:17)
npm ERR!     at HTTPParser.onIncoming (http.js:1261:11)
npm ERR!     at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! You may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /home/rune/npm-debug.log npm
npm ERR! 
npm ERR! System Linux 3.8.0-29-generic
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "meteorite"
npm ERR! cwd /home/rune
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message Failed to fetch from registry: meteorite
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/rune/npm-debug.log
npm not ok
显然,Meteor安装自己的节点和npm,你不应该将它们与系统或其他节点或npm安装混合使用.

我正在搜索这个很长一段时间并创建/销毁了许多EC2实例,直到找到解决方案.

在curl之后https://install.meteor.com | / bin / sh只是导出路径,所以你的shell可以找到Meteor的npm:

export PATH =〜/ .meteor / tools / latest / bin:$PATH为.bash-profile做.

这让我可以轻松安装陨石,没有sudo:
npm install -g陨石

我从https://github.com/oortcloud/meteorite/issues/203开始学到这一点

原文链接:https://www.f2er.com/ubuntu/349172.html

猜你在找的Ubuntu相关文章