npm 安装vue开发环境时报错

npm install出现"Unexpected end of JSON input while parsing near"错误解决方法
npm cache clean --force

即可解决pm install出现”Unexpected end of JSON input while parsing near”错误。

npm WARN deprecated [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
解决办法1:降低版本
npm install [email protected] -g


解决办法2:更新npm
npm cache clean -f
npm install npm -g

你可能感兴趣的:(工程化项目)