1、问题描述:
Unexpected end of JSON input while parsing near '…"
解决办法:
(1)npm install --registry=https://registry.npm.taobao.org --loglevel=silly
(2) npm cache clean --force
(3) npm install
2、问题描述:
npm ERR! code Z_BUF_ERROR
npm ERR! errno -5
npm ERR! zlib: unexpected end of file
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Nick.Miao\AppData\Roaming\npm-cache_logs\2020-04-29T01_13_07_655Z-debug.log
解决办法:
(1)npm cache clean --force
(2)npm install