vue cli 安装报错 integrity checksum failed when using sha512
Windows安装 vue-cli报错C:\Users\owner>npm install -g @vue/clinpm ERR! code EINTEGRITYnpm ERR! sha512-1FXRes+Xl/018OdF8pSZKxQzT+NwUpBm5/DbKkNxcxJOSgEE/sIUGmQjyQPWyYyFs6hugbIsNpEJgdYumUUjbQ== integrity c
Windows安装 vue-cli报错
C:\Users\owner>npm install -g @vue/cli
npm ERR! code EINTEGRITY
npm ERR! sha512-1FXRes+Xl/018OdF8pSZKxQzT+NwUpBm5/DbKkNxcxJOSgEE/sIUGmQjyQPWyYyFs6hugbIsNpEJgdYumUUjbQ== integrity checksum failed when using sha512:
wanted sha512-1FXRes+Xl/018OdF8pSZKxQzT+NwUpBm5/DbKkNxcxJOSgEE/sIUGmQjyQPWyYyFs6hugbIsNpEJgdYumUUjbQ== but got sha512-d3NkXk03JZ9hGcPV+lU0+07PiU8rY8Lw
Yy5I3e12lceoqC6wwC4hgbZMmKwElb2E332U94EnVt0WE79f84UmuQ==. (690632 bytes)
npm ERR! A complete log of this run can be found in:
npm ERR! D:\node-v12.18.3-win-x64\node-cache_logs\2020-09-07T17_02_18_387Z-debug.log
解决办法
按照网上说的升级npm
npm install -g npm
然后再安装vue-cli
npm install -g @vue/cli
成功
中间可能是因为网络慢,卡了半天没反应,使用手机流量就安装好了
更多推荐
所有评论(0)