我需要了解如何使用 Meteor 在 linux(Cent O.S)中安装 Meteorite 软件包。我尝试使用 mrt 和 npm,但出现诸如 mrt not found 和 npm not find 之类的错误。我是meteor 的新手。所以可以请您建议我如何在 Meteor 中使用 mrt 和 npm 包?以下是用来安装 Meteorite 的。
npm install -g meteorite
sudo -H npm install -g meteorite
以上都是 get 错误,都是找不到 npm。
我正在使用 Ubuntu,但出现以下错误:
[root@localhost HCare]# sudo apt-get install nodejs nodejs-dev npm
sudo: apt-get: command not found
[root@localhost HCare]#
以上都是 get 错误,都是 npm 没有找到。我正在使用 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
并且也不会退出并收到很多上述消息。
最佳答案
我建议使用您的发行版的包管理器,在本例中为 YUM:
- 安装nodejs和npm:
yum install nodejs npm
- 安装陨石
npm install -g Meteorite
既然你已经安装了meteor,就这样了。
关于meteor - 使用 Meteor 在 Linux 中安装 Meteorite?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22635334/