git - Meteor:从 Github 克隆存储库时出错

标签 git github meteor

我在安装 Meteorite 时遇到问题.

我目前要开始处理 Telescope Project托管here

我已将 Telescope 下载到 D:\Meteor\Telescope 中,并在命令提示符下使用 npm install -g Meteorite 安装了 Meteorite。

但是当我使用 mrt 命令朗姆酒陨石时,我收到以下错误:

Stand back while Meteorite does its thing

Installing Meteor

  branch: https://github.com/meteor/meteor.git#master

Installing smart packages

C:\Users\Snowflax\AppData\Roaming\npm\node_modules\meteorite\lib\sources\git.js:108
        throw "There was a problem cloning repo: " + self.url;
                                                   ^
There was a problem cloning repo: https://github.com/meteor/meteor.git

这里出了什么问题?我的 Windows 7 系统上已经安装了 Meteor Preview 0.4.2。 是否存在跨平台问题?任何帮助将不胜感激。

最佳答案

异常消息来自meteorite lib/sources/git.js :

GitSource.prototype._clone = function(fn) {
  var self = this;
  if (!fs.existsSync(this.sourcePath)) {
    exec('git clone ' + self.url + ' ' + this.sourcePath, function(err, stdout, stderr) {
      if (err)
        throw "There was a problem cloning repo: " + self.url;
      fn();
    });
  } else {
    fn();
  }
};

您需要将 this.sourcePath 值添加到异常消息中,然后手动重复 git clone 命令(在您自己的 git- cmd DOS session )以查看失败的原因。

关于git - Meteor:从 Github 克隆存储库时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14192098/

相关文章:

Git 在错误的位置寻找我的 SSH key

github - 如何使用 Jekyll 网站设置 RSS 提要?

python - Django 迁移不适用于 GitHub 操作

javascript - Meteor 找不到重新导出的模块

javascript - 访问输入元素中的值

Git:压缩不是最近提交的连续提交,并且不从根开始

git - 您如何从 fork 的 github 存储库 merge 非主分支上的更改?

git - 使用 git submodule update 时,如何告诉它使用 HTTP 而不是 GIT 克隆依赖项?

android-studio - 我可以在 Android Studio IDE 中输入 Git 命令吗?

tree - Meteor:如何从集合创建响应式(Reactive)树结构