/ bin / sh:找不到git:command。流星包安装

时间:2014-07-29 17:15:46

标签: node.js git meteor meteorite

我正在添加" googlemaps"打包到MacOS上的新流星项目。我已经正确安装了节点和陨石,但是当我运行命令时:" mrt add googlemaps"。它显示以下错误。关于它的任何想法?

✓ googlemaps
    tag: https://github.com/drewjw81/meteor-googlemaps.git#v0.0.2
ERROR: 127 Command failed: /bin/sh: git: command not found


STDOUT:  

STDERR: /bin/sh: git: command not found



/usr/local/lib/node_modules/meteorite/lib/sources/git.js:124
        throw "There was a problem cloning repo: " + self.url +
                                                              ^
There was a problem cloning repo: https://github.com/drewjw81/meteor-googlemaps.git
Please check https://github.com/oortcloud/meteorite/blob/master/CONTRIBUTING.md#troubleshooting for potential explanations.

但是,安装git后会显示以下错误:

Stand back while Meteorite does its thing
✓ googlemaps
    tag: https://github.com/drewjw81/meteor-googlemaps.git#v0.0.2
ERROR: null Command failed:  

STDOUT:  

STDERR:  


/usr/local/lib/node_modules/meteorite/lib/sources/git.js:124
        throw "There was a problem cloning repo: " + self.url +
                                                              ^
There was a problem cloning repo: https://github.com/drewjw81/meteor-googlemaps.git
Please check https://github.com/oortcloud/meteorite/blob/master/CONTRIBUTING.md#troubleshooting for potential explanations.

1 个答案:

答案 0 :(得分:0)

看起来你错过了git。安装Xcode from the app store。它带有git。如果您是homebrew用户,并且想要最新版本(在我的情况下我认为是可选的),您可以使用brew update; brew install git进行安装。