Skip to content
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

[6.0.0-rc.7] ng new fail #10513

Closed
mantyz opened this issue Apr 28, 2018 · 10 comments
Closed

[6.0.0-rc.7] ng new fail #10513

mantyz opened this issue Apr 28, 2018 · 10 comments
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Milestone

Comments

@mantyz
Copy link

mantyz commented Apr 28, 2018

Versions

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

Repro steps

  • ng new project-name

Observed behavior

pc@mantyz:~/dev/node$ ng new project-name
This command can not be run inside of a CLI project.

Desired behavior

Angular-cli must create a project.

Mention any other details that might be useful (optional)

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.

@mantyz mantyz changed the title [rc.7] ng new fails [6.0.0-rc.7] ng new fail Apr 28, 2018
@sanjitkumarsingh
Copy link

I have tested and its working fine. Please re-install it and post the Issue what you are getting.

@mantyz
Copy link
Author

mantyz commented Apr 28, 2018

Hmm... The project is successfully created relative to the "/"(root) directory, but is not created relative to the "/home/username/" and subdir.

@tobi-or-not-tobi
Copy link

I have the same experience with 6.0.0-rc.7, i'm not able to create a new app.

@dimitrijuchtmans
Copy link

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.

@mantyz
Copy link
Author

mantyz commented Apr 29, 2018

@dimitrijuchtmans, thank you. Yea, the directory "/home/username" contained an angular cli.json file.

@rokerkony
Copy link

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:

  1. cd /www // folder with all cloned repositories we have
  2. ./other-updated-project/node_modules/.bin/ng new --style=scss new-project-name
  3. I get This 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

@rokerkony
Copy link

rokerkony commented Apr 29, 2018

It seems to be a bit related to already fixed issue: #10163

maybe related also to #10508

@filipesilva filipesilva added this to the v6.0.0 milestone Apr 30, 2018
@filipesilva filipesilva added the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label Apr 30, 2018
@clydin clydin assigned Brocco and unassigned clydin Apr 30, 2018
Brocco added a commit to Brocco/angular-cli that referenced this issue May 1, 2018
Brocco added a commit to Brocco/angular-cli that referenced this issue May 1, 2018
Brocco added a commit to Brocco/angular-cli that referenced this issue May 1, 2018
@hansl hansl closed this as completed in 6ccf465 May 1, 2018
@amcdnl
Copy link

amcdnl commented May 2, 2018

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.

@andrew-mykhalchuk
Copy link

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.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

No branches or pull requests

10 participants