简体   繁体   中英

How can I solve "No projects support the 'serve' target." Error?

When I try to run ng serve in the command line in VSCode tihs error pops out: "No projects support the 'serve' target."
What should I do?

Update @angular/cli

  1. npm install -g @angular/cli
  2. npm install @angular/cli
  3. ng update @angular/cli

see also this link: http://cssstars.com/no-projects-support-the-serve-target/

run npm install --ignore-scripts from the project directory

Check angular.json file, must be something is not proper with the projects property

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM