【发布时间】:2020-08-04 02:31:47
【问题描述】:
我尝试清除缓存 + --强制清除缓存,花了很多天寻找解决方案,但当我尝试“npm install”命令时问题仍然存在。请参阅下面的语法:
请帮忙!
npm ERR! file C:\Users\luisl\package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected token } in JSON at position 627 while parsing near '...tract": "3.0.6",
npm ERR! }
npm ERR! }
npm ERR! '
npm ERR! File: C:\Users\luisl\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! Tell the package author to fix their package.json file. JSON.parse
npm ERR! A complete log of this run can be found in:
【问题讨论】:
-
你能复制你的 package.json 的内容并在这里分享,这样我们就可以清楚地了解你的问题。它似乎只是缺少逗号(,)或者你有更多的右括号
-
你的 package.json 格式不正确