I have created a angular project with Angular CLI: 1.6.3 Node: 9.4.0 OS: linux x64 version. But when want to run my angular app with command ng serve then fetch this error
package.json, change to "@angular/cli": "^1.6.5",
"devDependencies": {
"@angular/cli": "^1.6.5",
"@angular/compiler-cli": "^5.0.0",
Important, the version could be vary depends on what time.
You really should run
npm update -g @angular/cli
first, to get version, my is 1.6.5
What does the "^" do?
~1.0.2 means to install version 1.0.2 or the latest patch version such as 1.0.4.
^1.0.2 means to install version 1.0.2 or the latest minor or patch version such as 1.1.0.
last, run this
npm update