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! 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)