这是我在Mac上执行的操作:

brew install npm
sudo -H npm install -g meteorite

结果是:
 $ sudo -H npm install -g meteorite
    Password:
    npm http GET https://registry.npmjs.org/meteorite
    ....

    > [email protected] postinstall /usr/local/share/npm/lib/node_modules/meteorite
    > sh ./completions/postinstall.sh

    npm WARN package.json [email protected] No repository field.
    [email protected] /usr/local/share/npm/lib/node_modules/meteorite
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected] ([email protected], [email protected], [email protected], [email protected])
    ├── [email protected] ([email protected], [email protected])
    ├── [email protected] ([email protected], [email protected])
    └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])

但是当我键入mrt时,它显示
$ mrt
-bash: mrt: command not found

我的节点和标称版本是:
$ node -v
v0.10.12
$ npm -v
1.2.32

任何人的帮助表示赞赏。

最佳答案

我刚刚找到了原因和解决方案:〜/ node_modules / meteorite / .bin /中的mrt应该包含在/ usr / local / bin或$ PATH环境中的某个位置。

cp ~/node_modules/meteorite/.bin/mrt /usr/local/bin/

当我输入mrt时,它可以工作:)

09-25 19:34