我在Oracle 4.3.6中运行Win7并安装Ubuntu12.04.3。
我做的第一件事是尝试安装meteorite,但得到以下错误:
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发布于 2014-04-01 20:31:34
显然,Meteor安装了自己的节点和npm,您不应该将它们与系统或其他节点或npm安装混合在一起。
我为此寻找了很长一段时间,创建/销毁了许多EC2实例,直到我找到了解决方案。
在curl https://install.meteor.com | /bin/sh之后,只需导出路径,这样您的shell就可以找到流星的npm:
export PATH=~/.meteor/tools/latest/bin:$PATH为.bash-profile做到了这一点。
这让我可以很容易地安装meteorite,而不需要sudo:npm install -g meteorite
发布于 2014-01-12 06:41:14
下面是我的安装步骤
1:更新和升级你的Ubuntu,这取决于你的镜像有多新,这可能需要一段时间。
sudo apt-get update && sudo apt-get upgrade
2:安装curl
sudo apt-get install curl
3:安装节点http://lucidservices.com/2013/09/17/install-node-on-ubuntu/
4:安装meteor
curl https://install.meteor.com | sh
5:安装meteorite
sudo -H npm install -g meteorite
发布于 2014-03-23 06:46:28
现在这种情况在我身上发生了很多次--这个线程中的解决方案对我很有效-- Install NodeJS on Ubuntu 12.10
https://stackoverflow.com/questions/21067674
复制相似问题