npm install --build-from-source
npm ERR! code EJSONPARSE
npm ERR! file /home/falcon/package.json
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected end of JSON input while parsing near '...ess": "^4.16.1"
npm ERR! JSON.parse }
npm ERR! JSON.parse
npm ERR! JSON.parse '
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/falcon/.npm/_logs/2020-05-07T19_58_48_436Z-debug.log我想在ubuntu构建源上安装npm,但它会出现错误。
发布于 2020-05-08 06:44:50
此错误指示package.json内部存在错误,特别是在声明express依赖项的行附近。
如果您共享了您的package.json文件,我们将获得有关该问题的更好信息。
您可以尝试运行以下命令: rm package-lock.json删除锁定文件并再次运行npm install可以帮助解决此问题。
https://stackoverflow.com/questions/61666715
复制相似问题