运行angular1的旧项目时,出现错误

[14:33:30] Finished 'default' after 2.1 s
events.js:183
throw er; // Unhandled 'error' event
^

SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at G:\workSpace\alphain_portal\node_modules\wiredep\lib\detect-dependencies.js:70:36
at Array.forEach ()
at findComponentConfigFile (G:\workSpace\alphain_portal\node_modules\wiredep\lib\detect-dependencies.js:66:5)
at G:\workSpace\alphain_portal\node_modules\wiredep\lib\detect-dependencies.js:145:31
我这边node使用的v8.12.0,angular/cli使用的是6.0.8
请教各位大神,是否是我使用的angualr/cli的版本问题。

参考GPT和自己的思路:

根据你提供的错误信息,问题出现在 wiredep 的 detect-dependencies.js 文件中,JSON 解析出现意外的结尾。可能原因是某个 JSON 文件的格式不正确,或者是被损坏了。您可以尝试检查您的项目中所有 JSON 文件的格式是否正确,并且重新安装 wiredep 模块。同时,您也需要确认您的 angular/cli 版本是否兼容您正在使用的 Node.js 版本。如果问题仍然存在,请提供更多细节以便我们更好地了解您的情况并寻求最佳解决方案。