文章

npm install 报错ErrorUnexpected token

npm install 运行后报错Unexpected token } in JSON at position 496532 while parsing

网上有清除cache和清除淘宝镜像链接的解决方法

但是无效。

最后方案:

删除package-lock.json

重新运行npm install

ok搞定

本文由作者按照 CC BY 4.0 进行授权