我正在添加"googlemaps"包到MacOS上的新流星项目。我已经正确安装了node和meteorite,但是当我运行命令:"mrt添加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.
看起来你错过了git。从应用商店安装Xcode。它是git附带的。如果你是一个自制用户,并且想要最新的版本(我认为在你的情况下是可选的),你可以用brew update; brew install git
安装它。