我需要知道使用Meteor在linux(Cent O.S)中安装meteorite包。我尝试使用mrt& amp; npm但是我得到的错误就像找不到mrt而且找不到npm。我是meteor的新手。你能不能建议我如何在Meteor中使用mrt和npm包?以下是用来安装陨石的。
npm install -g meteorite
sudo -H npm install -g meteorite
以上两者都是错误,未找到npm。
我使用Ubuntu但得到以下错误:
[root@localhost HCare]# sudo apt-get install nodejs nodejs-dev npm
sudo: apt-get: command not found
[root@localhost HCare]#
以上两者都是获取错误,未找到npm。而且我使用了yum -y更新并且还收到了如此多的消息,但这是正确与否,但我不知道?
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
并且也不会退出并获得大量消息。
答案 0 :(得分:2)
我建议您使用软件包管理器进行分发,在本例中为YUM:
yum install nodejs npm
npm install -g meteorite
既然已经安装了meteor,那就是它。