这是我在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
....
> meteorite@0.6.13 postinstall /usr/local/share/npm/lib/node_modules/meteorite
> sh ./completions/postinstall.sh
npm WARN package.json node@0.0.0 No repository field.
meteorite@0.6.13 /usr/local/share/npm/lib/node_modules/meteorite
├── colors@0.6.0-1
├── underscore@1.5.2
├── wrench@1.5.1
├── fstream@0.1.24 (inherits@2.0.1, graceful-fs@2.0.1, rimraf@2.2.2, mkdirp@0.3.5)
├── optimist@0.6.0 (wordwrap@0.0.2, minimist@0.0.5)
├── ddp@0.3.4 (meteor-ejson@0.6.3, ws@0.4.31)
└── prompt@0.2.11 (revalidator@0.1.5, pkginfo@0.3.0, read@1.0.5, utile@0.2.0, winston@0.6.2)
但是当我输入mrt
时,会显示
$ mrt
-bash: mrt: command not found
我的节点和nom版本是:
$ node -v
v0.10.12
$ npm -v
1.2.32
任何人都有所帮助。
答案 0 :(得分:2)
我刚刚找到了原因和解决方案:〜/ node_modules / meteorite / .bin /中的mrt
应该包含在/ usr / local / bin中或者$ PATH环境中的某个位置。所以这样做:< / p>
cp ~/node_modules/meteorite/.bin/mrt /usr/local/bin/
当我输入mrt
时,它有效:)