webpack 4 和 webpack-cli 安装出错 Unexpected end of JSON
安装 webpack 和 wepack-cli 时,报错。
npm install webpack webpack-cli --save-dev
出现如下错误信息
npm ERR! Unexpected end of JSON input while parsing near '...blyjs/wasm-edit":"1.4'
解决方法:
npm cache clean --force
重新安装 webpack 即可解决。