2

I am creating angular 2 application through "angular-cli" version "1.0.0-beta.28.3".

When I am using commands "npm start" or "ng serve", the app is working at http://localhost:4200

But, when changing some code for type Script file or CSS, the live refresh for browser is not happening. What's wrong here? Thanks!

Vitalii Pro
  • 313
  • 2
  • 17
user584018
  • 10,186
  • 15
  • 74
  • 160

1 Answers1

5

Try deleting your node_modules folder and running npm install again. This should upgrade a bad npm dependency.

By the way, you might also want to upgrade to Angular CLI beta 29 as beta 28.3 has a few issues in general. If you do so, note that the package name has changed in beta.29 from angular-cli to @angular/cli.

Meligy
  • 35,654
  • 11
  • 85
  • 109