【发布时间】:2020-05-07 20:01:25
【问题描述】:
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 但它会报错
【问题讨论】:
-
package.json 文件中似乎存在语法错误。将单引号
'替换为双引号"