20240718
cnpm安装
npm install -g cnpm --registry=https://registry.npmmirror.com
npm install -g cnpm --registry=http://mirrors.cloud.tencent.com/nodejs-release/
nodejs 12版本安装低版本cnpm
npm install cnpm@7.1.0 -g --registry=https://registry.npmmirror.com
淘宝镜像
npm config set registry https://registry.npmmirror.com
查看:
npm config list
npm config get registry
清除缓存:
npm cache clear --force
镜像源:
1、淘宝镜像: https://npmmirror.com/mirrors/npm/
2、cnpmjs镜像: https://registry.nlark.com
3、npm官方镜像: https://registry.npmjs.org
注:玩儿nodejs卡住了多按按空格!!!