vue 创建新项目报错问题
npm ERR! Unexpected end of JSON input while parsing near '...e89aff91d5","size":10'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Qiyu Liu\AppData\Roaming\npm-cache\_logs\2020-06-05T08_21_49_356Z-debug.log
ERROR command failed: npm install --loglevel error
解决办法:
1.清理cache
npm cache clean --force
2.换镜像
npm config set registry "https://registry.npm.taobao.org" //淘宝
npm config set registry "http://registry.npmjs.org" //原景象