npm常用命令

npm全局安装路径的查看

查看

npm config ls

设置淘宝镜像

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

取消淘宝镜像

npm config delete registry

设置代理

npm config set proxy=http://127.0.0.1:1080

取消代理

npm config delete proxy

查看当前配置

npm config list

yarn设置代理

yarn config set proxy http://127.0.0.1:1080
yarn config set https-proxy https://127.0.0.1:1080

yarn取消代理

yarn config delete proxy
yarn config delete https-proxy

发表评论

邮箱地址不会被公开。 必填项已用*标注