背景
需要在项目中建立自己的component @H_301_4@ 定位到具体的目录下;输入ng g component my-indivi @H_301_4@ dual-information @H_301_4@ 就会显示如下问题,无法创建component
问题
在控制台提示如下问题:
You have to be inside an angular-cli project in order to use the generate command
解决
npm install -g @angular/cli@latest
参考网址: @H_301_4@ https://stackoverflow.com/questions/39133782/you-have-to-be-inside-an-angular-cli-project-in-order-to-use-the-build-command-a
https://stackoverflow.com/questions/40868455/how-to-set-folders-to-angular-cli-commands