-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ng new my-app causes This command can not be run inside of a CLI project. #10594
Comments
How it is possible to release a new version of angular-cli and not test new project generation? Build system should be improved. |
Seems to be fixed on master |
Same issue here. |
delete all |
Works now, thanks! |
In the folder you are targeting, if there is an angular-cli.json file, remove it. Worked for me. |
Update |
I updated |
Maybe we can change the error message to enable users to remove their leftover files without having to google it first... |
I'm working on a Mac. I tried looking for the files
I couldn't find the files there. Where else am I supposed to look? |
Still happening to me. Have tried to uninstall -g and install the lastest version, but did't work. VersionsAngular CLI: 6.1.5 Where are theses .angular* files? |
I am having lot of trouble with his error message. No .angular* files located in my home/root directories. ng n c gives this error This command can not be run inside of a CLI project. Angular: 6.1.6 Package Version@angular-devkit/architect 0.7.5 This is very disheartening.. especially since I am learning angular at the same time. |
Try to run cmd as Administrator |
I got around this issue by removing a stray angular-cli.json file from the folder path where I was trying to install a new Angular app. I was attempting to install a new app in the directory: /home/vagrant/projects/angular-app However, inside the /home/vagrant/projects directory was an angular-cli.json file that I kept for a backup. I renamed the file and put a '1' in front of the file name and was able to install successfully after that. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
Observed behavior
Desired behavior
New project should be created.
Mention any other details that might be useful (optional)
The text was updated successfully, but these errors were encountered: