【问题标题】:Instaling meteorite安装陨石
【发布时间】:2014-03-23 04:11:42
【问题描述】:

我是新人,见谅。我正在尝试在我的新 Linux 机器上安装陨石。尝试运行安装命令时(有或没有 root 访问权限)我收到此错误消息:

npm http GET https://registry.npmjs.org/meteorite
npm ERR! Error: failed to fetch from registry: meteorite<br>
npm ERR!     at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12<br>
npm ERR!     at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)<br>
npm ERR!     at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)<br>
npm ERR!     at Request.callback (/usr/lib/nodejs/request/main.js:119:22)<br>
npm ERR!     at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)<br>
npm ERR!     at Request.emit (events.js:88:20)<br>
npm ERR!     at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)<br>
npm ERR!     at ClientRequest.emit (events.js:67:17)<br>
npm ERR!     at HTTPParser.onIncoming (http.js:1261:11)<br>
npm ERR!     at HTTPParser.onHeadersComplete (http.js:102:31)<br>
npm ERR! You may report this log at:<br>
npm ERR!     <http://bugs.debian.org/npm><br>
npm ERR! or use<br>
npm ERR!     reportbug --attach /home/jeffrey/npm-debug.log npm<br>
npm ERR! <br>
npm ERR! System Linux 3.5.0-45-generic<br>
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "meteorite"<br>
npm ERR! cwd /home/jeffrey<br>
npm ERR! node -v v0.6.12<br>
npm ERR! npm -v 1.1.4<br>
npm ERR! message failed to fetch from registry: meteorite<br>
npm ERR! <br>
npm ERR! Additional logging details can be found in:<br>
npm ERR!     /home/jeffrey/npm-debug.log<br>
npm not ok<br>

帮助!

【问题讨论】:

  • 我假设您使用npm install meteorite 安装?
  • 确保您的 node/npm 安装已更新。检查https://registry.npmjs.org/meteorite url 显示了陨石的 npm 注册表数据,所以它就在那里并且准备好了。
  • 你试过了吗:sudo -H npm install -g meteorite?不过,这应该不是问题。该错误似乎与从网络上获取失败有关。
  • 使用不同的包也有同样的问题。使用 Ubuntu 12.10 自带的 npm。
  • 更新节点成功了!非常感谢。

标签: meteor meteorite


【解决方案1】:

取自:Unable to install meteorite on Ubuntu VM 也许它也适用于您的情况。你的错误让你想起了我得到的那个

sudo apt-get update && sudo apt-get 升级

安装 curl sudo apt-get install curl

安装节点http://lucidservices.com/2013/09/17/install-node-on-ubuntu/

安装流星 curl https://install.meteor.com |嘘

安装陨石 sudo -H npm install -g 陨石

【讨论】:

  • 这对我有用,安装 Node 是我的问题
【解决方案2】:

按照 Rune Jeppesen 的建议默认安装 node++ 对我不起作用。原来12.10的默认节点安装太旧了。

在我安装了最新版本的 node 后,它对我有用,而不是默认 apt-get 提供的那个(来自https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager):

sudo apt-get update
sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

【讨论】:

    猜你喜欢
    • 2015-09-13
    • 2013-08-12
    • 2014-01-30
    • 1970-01-01
    • 2013-05-03
    • 2014-12-22
    • 2013-02-17
    • 2013-10-21
    • 1970-01-01
    相关资源
    最近更新 更多