Angular CLI: 6.0.0-rc.7
Node: 8.11.1
OS: linux x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.5.10
@angular-devkit/core 0.5.10
@angular-devkit/schematics 0.5.10
@ngtools/json-schema 1.1.0
@schematics/angular 0.5.10
@schematics/update 0.5.10
rxjs 6.0.0
typescript 2.7.2
ng new project-namepc@mantyz:~/dev/node$ ng new project-name
This command can not be run inside of a CLI project.
Angular-cli must create a project.
ng new work with cli v6.0.0-rc.6
The project is successfully created relative to the "/"(root) directory, but is not created relative to the "/home/username" and subdir.
I have tested and its working fine. Please re-install it and post the Issue what you are getting.
Hmm... The project is successfully created relative to the "/"(root) directory, but is not created relative to the "/home/username/" and subdir.
I have the same experience with 6.0.0-rc.7, i'm not able to create a new app.
I experienced exactly the same thing, untill I realised that i had a .angular-cli.json file in my folder or parent folder structure somewhere.
@dimitrijuchtmans, thank you. Yea, the directory "/home/username" contained an angular cli.json file.
I have the same problem after migration from rc.6. I run the command from a different folder (ng is not installed locally)
My flow:
cd /www // folder with all cloned repositories we have./other-updated-project/node_modules/.bin/ng new --style=scss new-project-nameThis command can not be run inside of a CLI project.I have no angular-cli project at /www path only in subdirectories...
it was working in rc.6
It seems to be a bit related to already fixed issue: https://github.com/angular/angular-cli/issues/10163
maybe related also to https://github.com/angular/angular-cli/issues/10508
On RC9, I can confirm this is still happening. Had to remove the .angular.json file in my home directory to get it to work.
I don't have .angular.json file in home folder but this is still happening. I also tried to reinstall angular cli - no luck so far.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
@dimitrijuchtmans, thank you. Yea, the directory "
/home/username" contained anangular cli.jsonfile.