【发布时间】:2014-03-25 12:56:44
【问题描述】:
我需要了解如何使用 Meteor 在 linux(Cent OS) 中安装陨石包。我正在尝试使用 mrt 和 npm,但我得到了诸如 mrt not found 和 npm not found 之类的错误。我是流星新手。所以可以你请建议我如何在 Meteor 中使用 mrt 和 npm 包?以下是用来安装陨石的。
npm install -g meteorite
sudo -H npm install -g meteorite
以上都是get错误是npm is not found。
我正在使用 Ubuntu,但出现以下错误:
[root@localhost HCare]# sudo apt-get install nodejs nodejs-dev npm
sudo: apt-get: command not found
[root@localhost HCare]#
以上都是get错误,都是npm is not found。而且我正在使用 yum -y update 并且还收到了很多下面的消息,但这是否正确但我不知道?
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 2.4 M RSS (356 MB VSZ)
Started: Sat Mar 22 06:41:50 2014 - 3 day(s) 12:13:19 ago
State : Sleeping, pid: 6457
并且也不会退出并得到很多上面的消息。
【问题讨论】:
-
你打算在哪个 linux 上安装它?
-
我用的linux是Cent O.S.@archie hicox
-
你还需要安装
npm&nodejs。这取决于您拥有的 linux,但如果您使用 ubuntu,您可以使用:blog.nodeknockout.com/post/65463770933/… -
@Venkat for CentOS: digitalocean.com/community/articles/… 直到他们告诉你制作一个快速应用程序
-
您必须使用不同的 Linux 发行版。
apt-get适用于 Ubuntu。您的终端看起来不像 Ubuntu(我不记得 Ubuntu 有[]用于终端),并且缺少apt-get(它应该是内置的)