node -v
npm -v
# 清除npm缓存:
npm cache clean -f
# 升级到最新版本:
npm install npm -g
# 升级到指定版本:
npm install npm@6.14.13 -g
# 切换到指定版本:
npm i npm@6 -g
# 安装依赖:
npm install
# 启动服务:
npm run serve
# 使用国内镜像源
npm config set registry http://registry.npm.taobao.org
# 使用cnpm 解决被墙问题
npm install cnpm -g --registry=https://registry.npm.taobao.org
