【问题标题】:Install Meteorite in Linux Using Meteor?使用 Meteor 在 Linux 中安装 Meteorite?
【发布时间】: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(它应该是内置的)

标签: meteor centos meteorite


【解决方案1】:

我建议使用包管理器进行分发,在本例中为 YUM:

  1. 安装nodejs和npm:yum install nodejs npm
  2. 安装陨石npm install -g meteorite

既然你已经安装了流星,就是这样。

【讨论】:

  • 我正在尝试使用上面的东西得到这个消息很多所以这是安装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:09:20 ago State : Sleeping, pid: 6457.@archie hicox的方法
  • 您应该能够通过以下方式解决此问题: 1. yum clean all 2. rpm --rebuilddb 并重试。同时关闭任何图形 YUM 管理器。
  • 看起来也一样。@archie hicox
  • 包管理器似乎在后台运行。删除具有上述 ID 的进程:kill -9 6457
  • 使用 kill -9 6457.Now 得到Another app is currently holding the yum lock; waiting for it to exit... 就像很多这也没有终止。@archie hicox
猜你喜欢
  • 1970-01-01
  • 2014-07-20
  • 1970-01-01
  • 2014-01-23
  • 2013-11-19
  • 2014-06-19
  • 1970-01-01
  • 1970-01-01
  • 2013-08-16
相关资源
最近更新 更多