question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[6.0.0-rc.7] ng new fail

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

3reactions
mantyzcommented, Apr 29, 2018

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

2reactions
amcdnlcommented, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular project build fail only on GitHub Actions
Try to downgrade your CLI version or use --force flag when you ng update . As stated in the Angular Doc. [--force] Ignore...
Read more >
How To Update Angular CLI To Latest Version
To update Angular CLI to latest version Angular, use ng update ... First update to Angular CLI 6 version and then Angular CLI...
Read more >
Error configuring Universal Angular
I have the following error when configuring universal angular with mdbootstrap. apply all ... "build:client-and-server-bundles": "ng build --prod && ng run ...
Read more >
Resolved: This version of CLI is compatible with Angular ...
Angular CLI ng build command gives below error, ... (Example- Angular 5 or 6 or 7 or 8 apps to the Latest (Ex....
Read more >
[Bug] Suite tool stopped generating Angular UI for me #3777
I tried to update to latest rc version my cli and suite also a project, ... "@volo/abp.commercial.ng.ui": "6.0.0-rc.4", "@volo/abp.ng.account": "6.0.0-rc.4" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found