npm安装错误: No matching version found for terser@^4.6.13
2020-06-09 05:27
579 查看
npm安装错误: No matching version found for terser@^4.6.13
我在使用npm命令 npm i -S terser-webpack-plugin 安装 terser-webpack-plugin 时发成错误
错误显示没有找到符合的terserv@^4.6.13版本
根据这篇文章,我在npm的官网查找 terser 的版本
结果是有这个版本的,根据上面链接中文章所讲,需要把npm的源切换成npm自己的源。
这个切换npm的源是什么意思呢,大部分使用npm的朋友都应该体验过npm的下载速度,为了提高下载速度都会将npm的下载源切换到国内的淘宝源:http://registry.npm.taobao.org 现在只需要将源再切换回官方源:http://registry.npmjs.org 就可以了。
具体的切换方法:npm config set registry URL
即:npm config set registry http://registry.npmjs.org
在查找资料的时候发现CSDN上有一篇文章写的是:npm config set registry=http://registry.npmjs.org 我按照这个命令去执行的时候报错:npm: command not found 之后再次查询才找到正确的切换方式,在此记录一下,方便以后遇到相同情况时查阅。
相关文章推荐
- Theme主题错误:Error retrieving parent for item: No resource found that matche 分类: Android安装及配置 2014-06-22 18:46 171人阅读 评论(0) 收藏
- No matching version found for har-validator@5.1.2问题
- CDH安装SQOOP错误:Caused by: java.sql.SQLException: No suitable driver found for jdbc:derby:/var/lib/sqoo
- no matching version found for scratch-vm@0.2.0-prerelease.20180918201814
- 安装maven所见错误No plugin found for prefix 'help' in the current project and in the plugin
- No matching distribution found for tensorflow 错误解决
- 【python】Python安装pip出错:no matching distribution found for xxx
- python或anaconda下安装opencv提示Error:No matching distribution found for opencv
- 解决spring mvc No mapping found for HTTP request with URI错误的三种方法
- Flash容量设置错误导致的No Algorithm found for: 08020000H – 08024FD3H
- Spring No mapping found for HTTP request with URI错误
- No Suitable Driver Found For Jdbc错误解决
- 更新证书错误:No matching provisioning profiles found
- Hyperic Agent 安装配置报 - No token file found, waiting for Agent to initialize
- ld: library not found for -lpop ===pod安装的pop xcode打包的时候会出现链接错误
- matching wildcard is strict, but no declaration can be found for element for<context:property-plac
- U盘安装CentOS7系统 提示No Caching mode page found /dev/root does not exist错误的解决方法
- @Controler注解未生效报No mapping found for HTTP request with URI 错误
- 更新证书错误:No matching provisioning profiles found
- 解决"No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android"错误