【发布时间】:2015-02-06 01:04:34
【问题描述】:
我 fork 了一个 npm 模块,现在它是一个 git repo。
所以我的 package.json:
"dependencies": {
"some-module": "git+https://github.com/my-name/some-module.git",
}
通过获取上游和合并来同步分叉存储库。 但是当我尝试更新其他 npm 模块时,它给出了错误:
npm ERR! git Appears to be a git repo or submodule.
npm ERR! git /Users/.../node_modules/some-module
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.
npm ERR! System Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "update"
npm ERR! cwd /Users/...
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! path /Users/.../node_modules/some-module
npm ERR! code EISGIT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/.../npm-debug.log
npm ERR! not ok code 0
更新时有什么方法可以忽略 git repo 吗?还是跳过这个错误?
【问题讨论】: