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 doesn't 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..
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)