npm 淘宝镜像配置一直无效的可能原因

来源:互联网 发布:access数据库编辑器 编辑:程序博客网 时间:2024/05/01 00:57

网上搜罗npm的淘宝镜像,找到很多配置方法,结果由于混合使用导致全部不生效

现在写一个方法:

.npmrc   文件,注意开头有点,npmrc是后缀,一般在C盘

proxy=http://server/https-proxy=http://server/:portstrict-ssl=trueregistry=https://registry.npm.taobao.org/

上面是我遇到的错误的结果,混搭的无效。

直接删光,换成这一句即可

registry=https://registry.npm.taobao.org/


0 0