VUE npm install 安装报错问题 (记录)

错误信息:
npm ERR!
npm ERR! If you're sure you want to delete the entire cache, rerun this command with --force.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\newb2\AppData\Roaming\npm-cache\_logs\2019-03-28T15_07_13_255Z-debug.log

使用如下命令清除npm编译缓存即可

npm cache clean --froce

在这里插入图片描述

然后重新执行安装依赖命令即可
npm install

安装过程中又报如下错误:

npm ERR! the command again as root/Administrator (though this is not recommended)

切换到 root权限账号 执行install命令即可

还有一种情况就是网络的原因,一直下载失败,需要安装淘宝镜像

>npm install -g cnpm --registry=https://registry.npm.taobao.org
# 安装完成后 
>cnpm install

在这里插入图片描述

执行成功结果:
在这里插入图片描述

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值