ng serve does not work
I think you probably using an old version of Angular-Cli. You can reinstall latest version by following command.
npm uninstall -g angular-cli
npm cache clean
npm install -g angular-cli@latest
The key is to have both global and local Angular-cli versions the same.
Let's say we want to fixate it to eg. 1.0.0-beta.15
.
So you can try to fixate the version in npm install -g [email protected]
and in your package.json
fixate it to the same version: "angular-cli": "1.0.0-beta.15"
. Then run npm install --save-dev
.
Currently Angular CLI can be found on NPM under @angular/cli
instead of angular-cli
. Here are links to documentation how to uninstall old and install the latest version of CLI.
I was also facing this but now its resolved: Put this line in package.json for start:
"start": "ng serve --host 0.0.0.0 --port 4201"