文章目录
前言
提示:生命并不短暂,短暂的是人。 --阿多尼斯
java
yarn config set registry https://registry.npmjs.org --global
npm install -g cnpm --registry=https://registry.npm.taobao.org
# 切换淘宝源:
yarn config set registry https://registry.npm.taobao.org/
# 删除代理配置:
npm config set http-proxy null
npm config rm https-proxy
yarn config delete proxy
npm config rm proxy
# 删除node-module包:
rimraf node_modules
#清除缓存:
npm cache clean --force
npm cache verify
java
# 查看源
npm config get registry
# 下载淘宝镜像源
npm install -g cnpm --registry=https://registry.npm.taobao.org
# 切换淘宝镜像源
npm config set registry https://registry.npm.taobao.org
# 切换成官方
npm config set registry https://registry.npmjs.org/