0

When I run ng new myproject, I get following error.

"Unexpected end of JSON error while while parsing near ...": {"integrity": "sha51 '"

I am using MicroSoft Surface 6 Pro .

Sangwin Gawande
  • 7,658
  • 8
  • 48
  • 66
bob
  • 9
  • 1

1 Answers1

2

Do it like this

npm cache clean --force

then run

npm install -g @angular/cli@latest
Ram
  • 356
  • 2
  • 14