ng new my_project fails
See original GitHub issueVersions
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:
- Created 5 years ago
- Reactions:2
- Comments:9
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.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.