2013-09-27 55 views
3

在這裏工作是我做我的Mac:安裝隕石/ MRT沒有在Mac OSX上

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 

我的節點和NOM版本是:

$ node -v 
v0.10.12 
$ npm -v 
1.2.32 

任何幫助表示讚賞。

回答

2

我剛剛發現的原因和解決辦法:mrt在〜/ node_modules /隕石/的.bin /應包括在/ usr/local/bin目錄或在某處你的$ PATH environment.So做到這一點:

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

當我鍵入mrt,它的工作原理:)

+0

對於其他讀者,我的路(MAC OS X 10.8)是'在/ usr/local/lib目錄/ node_modules' – Hamal000

+0

我的路(OS X 10.9)是/ usr /本地/共享/ NPM /斌/ MRT – jpadvo