DEV Community

7 solutions to EJSONPARSE or Unexpected token `npm install` error

Brad Dettmer on August 04, 2018

You clone a repo, or maybe you are creating your project with a new package.json file. When you try to npm install, npm install package_name — save...
Collapse
 
dohahelmy profile image
Doha Helmy

This post helped me. Thank you for your effort. ^

Collapse
 
utd20 profile image
utd20

its also possible you have to use npm init

Collapse
 
kenaitian profile image
kenaitian

Don't forget remove any ","

Collapse
 
bilal1718 profile image
Muhammad Bilal

This post really helps me. Thanks

Collapse
 
ngtientu profile image
Ngtientu • Edited

Thanks, i'm fixed bug. I cleaned cache and deleted package.json then reinstall npm init -y, and then success. =))