一、安装nodejs并修改npm镜像
1、nodejs安装
2、修改npm镜像
npm config set registry https://mirrors.huaweicloud.com/repository/npm/
上述命令中 https://mirrors.huaweicloud.com/repository/npm/ 即为华为云 NPM 镜像地址,使用这个地址可以极大地加快 Node.js 模块的下载速度。
也可设置为腾讯镜像地址:
npm config set registry http://mirrors.cloud.tencent.com/npm/
如果要将设置的镜像地址修改回默认官方地址,则可以输入以下命令:
npm config set registry https://registry.npmjs.org
如何检查 npm 镜像地址,在命令行中输入以下命令:
npm config get registry
3、安装pnpm
npm install -g pnpm
二、安装VSCode及插件





被折叠的 条评论
为什么被折叠?



