1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > 【Angular2】You have to be inside an angular-cli project in order to use the generate command

【Angular2】You have to be inside an angular-cli project in order to use the generate command

时间:2021-07-16 16:20:42

相关推荐

【Angular2】You have to be inside an angular-cli project in order to use the generate command

背景

需要在项目中建立自己的component

定位到具体的目录下;输入ng g component my-individual-information

就会显示如下问题,无法创建component

问题

在控制台提示如下问题:

You have to be inside an angular-cli project in order to use the generate command

解决

npm install -g @angular/cli@latest

参考网址:

/questions/39133782/you-have-to-be-inside-an-angular-cli-project-in-order-to-use-the-build-command-a

/questions/40868455/how-to-set-folders-to-angular-cli-commands

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。