angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

[6.0.0-rc.7] ng new fail

Open mantyz opened this issue 8 years ago • 10 comments

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 avatar Apr 28 '18 14:04 mantyz

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

sanjitkumarsingh avatar Apr 28 '18 20:04 sanjitkumarsingh

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

mantyz avatar Apr 28 '18 21:04 mantyz

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

tobi-or-not-tobi avatar Apr 29 '18 10:04 tobi-or-not-tobi

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 avatar Apr 29 '18 11:04 dimitrijuchtmans

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

mantyz avatar Apr 29 '18 11:04 mantyz

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 avatar Apr 29 '18 20:04 rokerkony

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

rokerkony avatar Apr 29 '18 20:04 rokerkony

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.

amcdnl avatar May 02 '18 01:05 amcdnl

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.

andrew-mykhalchuk avatar Jul 19 '18 00:07 andrew-mykhalchuk

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.