【发布时间】:2019-06-03 02:46:01
【问题描述】:
我在 Github 上分叉和模块,根据我的需要对其进行了更改并推回了 git。现在我正在尝试使用 npm 安装此模块
npm install git+http://github.com/username/modulename.git
但我收到以下错误:
npm ERR! Command failed: git submodule update -q --init --recursive
npm ERR! fatal: O:/Programs/Git/mingw64/libexec/git-core\git-submodule cannot be used without a working tree.
什么可能导致它以及如何解决它?
【问题讨论】: