简体   繁体   中英

npm install failed ? npm install

 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

i want install npm on ubuntu build source but it will give error

This error indicates that there is an error inside your package.json, specifically near the line where the express dependency is declared.

If you shared your package.json file, we would get better information about the problem.

you can try to run the following command: rm package-lock.json Removing the lock file and running npm install again could help resolve the problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM