今天在学习 Angular 在使用命令的方式来创建 component 时会出现如下图所示的提示
经过搜索,找到的解决方法是执行下行代码
npm install -g @angular/cli@latest
参考网址:
https://stackoverflow.com/questions/40868455/how-to-set-folders-to-angular-cli-commands
https://stackoverflow.com/questions/39133782/you-have-to-be-inside-an-angular-cli-project-in-order-to-use-the-build-command-a
转载请注明:隨習筆記 » You have to be inside an angular-cli project in order to use the generate command.