关于vue.js:vue-命令

6次阅读

共计 242 个字符,预计需要花费 1 分钟才能阅读完成。

# 查看本人的镜像
npm config get registry

# 更换 npm 镜像(以淘宝镜像为例)npm config set registry http://registry.npm.taobao.org/

#还原
npm config set registry https://registry.npmjs.org/
# 删除 node_modules 目录
rm -rf node_modules/

# 清空缓存
npm cache clean

#重新安装
npm install
# 革除 npm 缓存
npm cache clean --force
正文完
 0