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.

ng new my_project fails

See original GitHub issue

Versions

Angular CLI: 6.0.0-rc.9
Node: 10.0.0
OS: darwin x64

Repro steps

  • install next version of @angular/cli
  • Create new project with ng new my_project
  • See error message

Observed behavior

$ cd Programmation/Angular/
$ ng new my_project
This command can not be run inside of a CLI project.

Desired behavior

Can create and generate new project with command-line

Mention any other details that might be useful (optional)

Folder where I want to create the new project isn’t an Angular project, only my root folder of all my Angular projects. All is working fine with @angular/cli@6.0.0-rc.6 and fails with others next versions rc.7, rc.8 and rc.9

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:9

github_iconTop GitHub Comments

9reactions
Zyzlecommented, May 2, 2018

@njl07 Do you have a .angular.json file in your users home dir? At some point it looks like this global config file was renamed .angular-config.json and having the old .angular.json present above the directory you’re trying to create makes the CLI think you’re already inside an angular project.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 9, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular CLI ng new error - node.js - Stack Overflow
Try to use an older version of Angular CLI until this problem get solved.
Read more >
ng new fails with latest version of @angular/cli and npm #20719
0" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or...
Read more >
[Solved] npm ERR! ERESOLVE unable to resolve ... - YouTube
ERESOLVE unable to resolve dependency tree. ng new app. node.js ... Error messages: ⠸ Installing packages (npm)...npm ERR! code ERESOLVE ...
Read more >
ng new - Angular
Option Description Value Type Default Value ‑‑commit Initial git repository commit information. boolean true ‑‑directory The directory name to create the workspace in. string ‑‑force Force...
Read more >
ng: command not found (Angular) error [Solved] | bobbyhadz
To solve the error "ng: command not found", install the angular cli package globally by running npm install -g @angular/cli@latest and restart your...
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