npm install 无法找到最新的包
楼主项目中用到了 @progress/kendo-angular-dateinputs 这个包,在npm官网和本地查询到最新的包都是1.0.6,但是在测试服务上执行npm install报错,在测试服务器上查了下版本号,显示最新的是1.0.5,因此安装失败,package.json 声明 "@progress/kendo-angular-dateinputs": "^1.0.6"
,测试了很多台机器,唯独这台测试服务器上找不到1.0.6,请问是什么原因?
报错信息:
$ npm install
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! code ETARGET
npm ERR! notarget No compatible version found: @progress/kendo-angular-dateinputs@^1.0.6
npm ERR! notarget Valid install targets:
npm ERR! notarget 1.0.5, 1.0.5-dev.201706261326, 1.0.4, 1.0.4-dev.201706150809, 1.0.4-dev.201706131239, 1.0.3, 1.0.3-dev.201706051028, 1.0.2, 1.0.2-dev.201705311506, 1.0.2-dev.201705261318, 1.0.2-dev.201705240946, 1.0.2-dev.201705240940, 1.0.2-dev.201705221449, 1.0.1, 1.0.0, 0.9.0, 0.8.3, 0.8.2, 0.8.1, 0.8.0, 0.7.0, 0.6.1, 0.6.0, 0.5.3, 0.5.2, 0.5.1, 0.5.0, 0.4.1, 0.4.0, 0.3.7, 0.3.6, 0.3.5, 0.3.4, 0.3.3, 0.3.2, 0.3.1, 0.3.0, 0.2.0, 0.1.0
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'xiaoyuyue-business-center'
npm ERR! notarget
npm ERR! Please include the following file with any support request:
npm ERR! C:\GitLab- Runner\builds\5abe9add\0\vappsdevelop\xiaoyuyue_business_center\npm-debug.log
本地环境
测试环境
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查一下这台测试服务器上.npmrc的配置,有没有给@progress配单独色registry,如果有这个registry。也就是私库,指向的私库地址对不对,这个私库地址上有没有1.0.6的包