安装/运行vue-cli出现的问题

安装vue-cli后出现这个问题:
无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\vue.ps1
在powershell中输入一下命令:
set-executionpolicy remotesigned

出现的问题:
npm ERR! Unexpected end of JSON input while parsing near ...
创建vuex项目出现问题,执行以下命令:
npm cache clean --force
然后再执行npm install就可以了

posted @ 2020-11-17 10:25  荨筱  阅读(154)  评论(0)    收藏  举报