是否有可能如何获得git依赖关系的更新行为?在package.json中使用git标签(适用于git依赖项)
所以我有git的依赖:
"dependencies": {
"my-module": "github:me/my-module"
}
,并希望它在每次我做npm install
及时更新,添加修改散列解决方案,但需要更多的工作,以跟踪和updatei中的package.json每次包更新在github上。
也有Git标签(也可使用npm version..
命令设置 - 它创造了标签提交v1.2.3
所以我想,也许是thiere方式家属的package.json使用这个标签
希望我?清晰。
上repoegit的标签给我
V1.0.1 V1.0.0 ..
如果我尝试MOD后的package.json添加ULE名版本,如:#1.0.0或#1.0.1
```
"dependencies": {
"my-module": "github:me/my-module#1.0.1"
}
```
安装失败,错误:
Command failed: git -c core.longpaths=true rev-list -n1 1.0.0
fatal: ambiguous argument '1.0.0': unknown revision or path not in the
ree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
If you need help, you may report this error at:
<https://github.com/npm/npm/issues>
...
如果'git标签'给你像'v1.0.0'等值,那么你需要使用该确切的值。使用'1.0.0' **将会失败**。 –