npm设置代理

一枝梅 10月前 ⋅ 161 阅读

淘宝npm镜像:https://developer.aliyun.com/mirror/NPM

设置方法:

npm config set proxy=http://127.0.0.1:10809
npm config set registry=http://registry.npmjs.org
npm config set registry=https://registry.npm.taobao.org
npm install --registry=https://registry.npm.taobao.org

查看代理:

npm config get proxy
npm config get registry

取消代理:

npm config delete proxy
npm config delete https-proxy

#npm #node #代理
我有话说:

全部评论: 0

    文章目录