2

solution i tried

npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@latest

but it doesn't work for me .

does it is npm bug or angular2. enter image description here

please suggest.

error

unexpected end of input at 1:13267

i also tried with ;https://angular.io/docs/ts/latest/guide/setup.html.

  • npm install not working enter image description here
2

1 Answer 1

2

You can try to uninstall wrong packages by:

npm uninstall -g angular-cli          # Remove global package
npm uninstall --save-dev angular-cli  # Remove from package.json

npm uninstall -g @angular/cli         # Remove global package
npm uninstall --save-dev @angular/cli # Remove from package.json

rm -rf node_modules dist # Use rmdir on Windows
npm cache clean

And now:

 npm install npm@latest -g                   #update npm
 npm install -g @angular/cli@latest          # Global package
 npm install --save-dev @angular/cli@latest  # Local package
 npm install                                 # Restore removed dependencies 

More information can be found here: https://github.com/angular/angular-cli/wiki/stories-1.0-update

Sign up to request clarification or add additional context in comments.

1 Comment

thanks mobile32 you save my day i hope these commands may solve all user problem

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.