-2
- 我已經創建了一個版本節點模塊
1.0.0
- 我分享它吧
- ,在其他測試項目中我嘗試使用這種依賴關係,偉大工程
- 然後我更新模塊
1.0.1
版本並安裝全球範圍內,但尚未發佈 - 於是我嘗試更新相關性的該項目測試版本
1.0.1
,但將相關不解決
只從遠程服務器解決依賴關係嗎?Node.js的衝突解決
模塊項目:
{
"name": "my-module",
"version": "1.0.1",
...
}
安裝在本地資源庫:
npm install --save
的package.json:
{
"name" : "my-project-test",
"version" : "0.0.1",
"dependencies" : {
"my-module": "1.0.1"
}
...
}
產生的錯誤:
$ npm install
npm ERR! Linux 3.16.0-45-generic
npm ERR! argv "node" "/usr/bin/npm" "install"
npm ERR! node v0.12.7
npm ERR! npm v3.3.5
npm ERR! No compatible version found: [email protected]
npm ERR! Valid install targets:
npm ERR! ["1.0.0"]
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! ./npm-debug.log