首页IT科技npm err cb() nevrr called(npm ERR! notarget No matching version found for xxx@^1.0.64. npm 插件安装失败)

npm err cb() nevrr called(npm ERR! notarget No matching version found for xxx@^1.0.64. npm 插件安装失败)

时间2025-05-04 17:24:05分类IT科技浏览3157
导读:npm ERR! notarget No matching version found for xxx@^1.0.64. npm 插件安装失败...

npm ERR! notarget No matching version found for xxx@^1.0.64. npm 插件安装失败

npm ERR! notarget No matching version found for xxx@^1.0.64.

npm 安装依赖 安装指定版本安装不成功

npm ERR! code ETARGET npm ERR! notarget No matching version found for xxx@^1.0.64. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesnt exist.

解释:在安装某插件过程中查找不到此插件的这个版本号

原因:

1         、可能是您当初设置的镜像源为淘宝镜像源 cnpm https://registry.npm.taobao.org

2                 、然而淘宝镜像源没有及时更新此插件版本           ,从而引起插件安装错误

解决办法

1    、检测当前镜像源

npm config get registry

2      、修改镜像源为npm

npm config set registry https://registry.npmjs.org

3                 、尝试重新下载插件,此时您应该可以下载插件了

4       、完成下载后便可切换镜像源至淘宝镜像源 npm config set registry https://registry.npm.taobao.org

参考文章

链接: 知乎博主:习惯 npm ERR! notarget No matching version found for xxx@^1.0.64..

创心域SEO版权声明:以上内容作者已申请原创保护,未经允许不得转载,侵权必究!授权事宜、对本内容有异议或投诉,敬请联系网站管理员,我们将尽快回复您,谢谢合作!

展开全文READ MORE
seo产品优化推广(seo是怎么优化推广的) yolov3测试速度慢的原因(查看yolov5/lite各层参数量和各层FLOPs)