-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