是否有可能如何獲得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' **將會失敗**。 –