无法在 Ubuntu VM 上安装陨石 [英] Unable to install meteorite on Ubuntu VM

查看:23
本文介绍了无法在 Ubuntu VM 上安装陨石的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行 Win7 并在 Oracle VM VirtualBox 4.3.6 中安装 Ubuntu 12.04.3.

I run Win7 and install Ubuntu 12.04.3 in Oracle VM VirtualBox 4.3.6.

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

First thing I do is try to install meteorite, but get the following error:

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 安装混合在一起.

Apparently, Meteor installs its own node and npm and you shouldn't mix these with system or other node or npm installations.

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

I was searching this for a long time and created/destroyed many EC2 instances until I found the solution.

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

After curl https://install.meteor.com | /bin/sh simply export the path so your shell can find Meteor's npm:

export PATH=~/.meteor/tools/latest/bin:$PATH.bash-profile 做这件事.

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

This allowed me to easily install meteorite, without sudo: npm install -g meteorite

我从 https://github.com/oortcloud/meteorite/issues/203

这篇关于无法在 Ubuntu VM 上安装陨石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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