Im Starting with Angular/cli and when I try to execute ng serve I Get this error. I've already update npm and I did cache clean --force, I've restarded my pc and all that and still not working, I've tryed executing globaly and in the directory itself and anything seems work, any help?
To highlight, after that error I was getting "Cannot find module '@angular-devkit/build-angular/package.json'" I've updated npm, reinstalled nodejs and install npm when I was passing trhough that but now I get this. I'm working in windows.
Try to install compiler in your project npm i @angular/compiler-cli --save
after then ng serve
If you have mac pc use brew command because we can not install angular-cli from npm command
brew install angular-cli
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.