【Angular2】You have to be inside an angular-cli project in order to use the generate command
来源:互联网 发布:terminal mac 编辑:程序博客网 时间:2024/05/17 07:15
背景
需要在项目中建立自己的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
参考网址:
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
阅读全文
0 0
- 【Angular2】You have to be inside an angular-cli project in order to use the generate command
- 【angular】you have to be inside an Angular CLI project in order to use the serve command
- CodeIgniter 错误: In order to use the Session class you are required to set an encryption key
- CodeIgniter 错误: In order to use the Session class you are required to set an encryption key
- 【Angular2】You seem to not be depending on “@angular/core”. This is an error
- You must have Ncurses installed in order to use 'make menuconfig'
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use
- Maven package错误:You have to use a classifier to attach supplemental artifacts to the project instead
- Google App Engine问题之Your project must be configured to use a JDK in order to use JSPs
- You don’t have permission to save the file “project.xcworkspace” in the folder
- 62 You have enabled backup optimization in RMAN. You issue the following RMAN command to configure a
- You have an error MySQL server version for the right syntax to use near 'TYPE=InnoDB' at line 20
- 使用PreparedStatement,出现You have an error in your SQL syntax; check the manual that corresponds to you
- The project could not be compiled. Would you like to open it in Xcode?
- 168.You execute this command to drop the ITEM table, which has the primary key referred in the ORDER
- How to use an external dll file in VisualStudio project
- Adding an existing project to GitHub using the command line
- git版本控制安装与配置(win)
- 离散数学(2)考试重点整理
- 18_switch语句_基本用法_case穿透现象
- unicode为12288字符
- java客户端操作fastdfs集群
- 【Angular2】You have to be inside an angular-cli project in order to use the generate command
- web的Seo搜索优化
- 堆知识总结
- LeetCode 43. Multiply Strings
- 函数的高阶特性——Python学习笔记04
- 使用Travis CI自动打包APK,并发布到fir
- JSplitPane 监听分割位置
- 用Swift 给tableView加载xib创建的tableHeaderView时不显示问题
- Android问题:com.android.builder.packaging.DuplicateFileException