Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我做了一个
npm i npm -g @angular/cli
然后当我这样做
ng serve
我收到此错误
但是我把 ng serve 放在 npm 脚本中(npm start in package.json)它可以工作。
您需要安装 angular-cli 并使用 ng 命令创建项目。
你可以按照这里的步骤
npm uninstall -g angular-cli @angular/cli npm cache clean npm install -g @angular/cli