1

I am very new to Angular. I have installed the Angular by using the command:

npm install -g @angular/cli

When I check the version of Angular it shows:

enter image description here

After on, I installed an Angular application by using: ng new newApp

I have got an error during app installation:

Unexpected end of JSON input while parsing near '...//registry.npmjs.org/'

Here is the image of what I have done:

enter image description here

You can find log content through this link: https://drive.google.com/file/d/11MEWOcSaU4c-1879LuijRiXRvCu-cAIz/view?usp=sharing

Let me know where is the problem...

Mikev
  • 2,012
  • 1
  • 15
  • 27
Rahmat Ali
  • 1,430
  • 2
  • 17
  • 29

1 Answers1

4

Try clearing the npm cache first using the following command and then try creating a new ng application

npm cache clean --force
Mohsin Mehmood
  • 4,156
  • 2
  • 12
  • 18