npm 淘宝设置代理
2024-09-04 07:45:21
直接安装cnpm导致无限索引,因此直接使用代理
方法一:
直接在当前用户文件夹下,npmrc 文件上直接设置代理:registry=https://registry.npm.taobao.org
方法二:
安装时临时指定代理:
npm install data_js --registry=https://registry.npm.taobao.org
全局配置:
npm config set registry https://registry.npm.taobao.org
npm config list ## 查看刚才的配置是否生效
最新文章
- [工作中的设计模式]解释器模式模式Interpreter
- Destoon B2B 调优SQL后 生成首页仍然慢或不成功的原因
- BZOJ1807 : [Ioi2007]Pairs 彼此能听得见的动物对数
- (转)Linux下用mkisofs制作光盘镜像ISO文件
- left join 、right join 、inner join和 full join的区别
- js中widow.open()方法详解
- 4pdf
- Dubbo源码学习--服务是如何引用的
- iOS 错误 之 Potential leak of an object stored into 'cs'
- AmpOne
- 笔记:Spring Cloud Hystrix 封装命令
- 小程序获取openid 出现null,{";errcode";:40163,";errmsg";:";code been used, hints: [ req_id: WNUzlA0105th41 ]";}
- IO的详细解释:It's all about buffers: zero-copy, mmap and Java NIO
- java学习笔记-连数据库JDBC
- 基于usb4java的usb通讯
- HDU 2586 How far away(dfs+邻接表)
- 7.6 GRASP原则六: 多态 Polymorphism
- Java_IO_文件的续写_小笔记
- Git的SSH-key生成、导入及使用
- JS 关于this p9
热门文章
- python学习笔记--python编程基础
- HUST-1407 郁闷的小J
- 【NOI2017】游戏
- centos7配置国内yum源
- Why do I keep getting mixed tabs and spaces in a Visual Studio C# code window?[vs power tools issue transfered]
- PHP文件函数
- Codeforces 919 B. Perfect Number
- Codeforces635C XOR Equation【数学】
- Codeforces 551E GukiZ and GukiZiana(分块思想)
- java保留n位小数