unexpected end of json while parsing near '...rowser-dynami","vers'

Dung Do Tien Jan 07 2021 299

I have just created an angular ver11 project, but when I run the command npm install, I got an error unexpected end of json while parsing near '...rowser-dynami","vers'.

Can anyone help me fix it?

Thank many for any solution.

Have 1 answer(s) found.
  • H

    Huyền Trần thị Jan 02 2021

    I got the same error as you, after reading the log and trying various methods I finally managed to fix it

    1. Open the terminal and run npm cache clean --force 
    2. An then run this command npm install -g @angular/cli

Leave An Answer
* NOTE: You need Login before leave an answer

* Type maximum 2000 characters.

* All comments have to wait approved before display.

* Please polite comment and respect questions and answers of others.

Popular Tips

X Close