unexpected end of json while parsing near '...rowser-dynami","vers'
Dung Do Tien
Jan 07 2021
291
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.
-
H3
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 commandnpm install -g @angular/cli
* Type maximum 2000 characters.
* All comments have to wait approved before display.
* Please polite comment and respect questions and answers of others.