Projects created wth ng new do not install
See original GitHub issueπ Bug report
Command (mark with an x)
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- extract-i18n
- run
- config
- help
- version
- doc
Is this a regression?
Yes, the previous version in which this bug was not present was: v11Description
Projected created with `ng new` and routing fails to install.π¬ Minimal Reproduction
- Run
$ ng new gaya-web- command fails - After, run:
cd gaya-web && npm install- command fails with same error as above
π₯ Exception or Error
gaya-web$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: gaya-web@0.0.0
npm ERR! Found: @angular/core@undefined
npm ERR! node_modules/@angular/core
npm ERR! @angular/core@"~12.1.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/core@"12.1.1" from @angular/animations@12.1.1
npm ERR! node_modules/@angular/animations
npm ERR! @angular/animations@"~12.1.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/noce2/.npm/eresolve-report.txt for a full report.
π Your Environment
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ β³ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 12.1.1
Node: 12.20.0
Package Manager: npm 7.19.1
OS: linux x64
Anything else relevant?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
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 >Issue with " ng new " -- Not able to create a new project. #16987
Just try to create a new angular project through command prompt. ng new app01. It is not installing properly and node_modules also missing....
Read more >Angular 9 ng new stuck at installing packages - Stack Overflow
At the time of creating new project with cli all files in root folder are generating but it is stuck at the part...
Read more >Angular CLI - ng new Command - Tutorialspoint
Sr.No. Option & Syntax Description
5 ββdirectory=directory The directory name to create the workspa...
13 ββpackageManager=npm|yarn|pnpm|cnpm The package manager used to install dep...
Read more >Angular CLI | Angular Project Setup - GeeksforGeeks
Angular CLI | Angular Project Setup ; Step-1: Install angular cli npm install - g @angular/cli ; Step-2: Create new project by this...
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

Hi @noce2, unfortunately, this is not actionable by us. Please raise an issue in the NPM issue tracker.
@juanpicado & @Dr-NULL, you are experiencing a different issue which should no longer be reproducible using the latest stable version of the Angular CLI.
This seems like a defect in NPM 7.
Several options to workaround the problem with NPM 7 include:
--forceoption tong updatewhich will propagate the force flag to npm.yarnas a package manager.