Issue Running ng build --watch
bdadkiss opened this issue · comments
bdadkiss commented
I cloned the project and ran the npm install completes perfectly but when I run the ng build --watch
I receive the following:
monkey-3:angular2-jumpstarter monkey$ npm install
audited 26834 packages in 8.733s
found 13 vulnerabilities (9 low, 4 high)
run `npm audit fix` to fix them, or `npm audit` for details
monkey-3:angular2-jumpstarter monkey$ ng build --watch
You have to be inside an angular-cli project in order to use the build command.
monkey-3:angular2-jumpstarter monkey$ npm start
> angular-jump-start@0.0.0 start /Users/.../repos/jumpstarters/angular2-jumpstarter
> node server.js
Express listening on port 3000.
Error: ENOENT: no such file or directory, stat '/Users/.../repos/jumpstarters/angular2-jumpstarter/dist/index.html'
I tried to reinstall the angular cli but no luck. what am I missing?
I had an earlier version prior to your upgrade to angular 6 which didn't require the ng build
step and it worked fine.
bdadkiss commented
To resolve my issue I performed the following commands.
sudo npm uninstall -g angular-cli @angular/cli
npm cache verify
sudo npm install -g @angular/cli
After running the above all of the commands in the readme worked as intended.