【Angular2】You have to be inside an angular-cli project in order to use the generate command
2017-06-03 16:08
691 查看
背景
需要在项目中建立自己的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
相关文章推荐
- 【angular】you have to be inside an Angular CLI project in order to use the serve command
- Internet Information Services is not installed. You must have Internet Information Services installed in order to use the SharePoint Products and Technologies Configuration Wizard
- CodeIgniter 错误: In order to use the Session class you are required to set an encryption key
- 插入mysql语句报错:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
- In order to use an interrupt in a Cortex-M3/M4, you need the following
- MySql 执行语句错误 Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
- In order to run a trace against SQL Server you must be a member of sysadmin fixed server role or have the ALTER TRACE permission.
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use
- 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
- [Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL s
- Mybatis报错(二)You have an error in your SQL syntax; check the manual that corresponds to your MySQL se
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL 完美解决
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL se
- ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server versio
- Register ASP.NET 4.0 An error has occurred: 0x8007b799 You must have administrative rights on this machine in order to ru
- ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your