npm 中文文档
node 安装
cnpm 安装
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm 切换为 cnpm
npm config set registry https://registry.npm.taobao.org
cnpm切换为npm: npm config set registry https://registry.npmjs.org
查看是否成功
npm config get registry
成功则显示(npm切换cnpm): https://registry.npm.taobao.org/
成功则显示(cnpm切换npm): https://registry.npmjs.org/
升级npm (@后面加指定版本号)
npm install npm@7.21.1 -g