Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

ionic start with blank template giving error

I installed latest node, npm and angular

npm ERR! code ERESOLVE

npm ERR! ERESOLVE unable to resolve dependency tree

npm ERR!

npm ERR! While resolving: [email protected]

npm ERR! Found: @angular/[email protected]

npm ERR! node_modules/@angular/compiler

npm ERR!   dev @angular/compiler@"~11.0.5" from the root project

npm ERR!   peer @angular/compiler@"11.0.9" from @angular/[email protected]

npm ERR!   node_modules/@angular/compiler-cli

npm ERR!     dev @angular/compiler-cli@"~11.0.5" from the root project

npm ERR!     peer @angular/compiler-cli@"^11.0.0" from @angular-devkit/[email protected]

npm ERR!     node_modules/@angular-devkit/build-angular

npm ERR!       dev @angular-devkit/build-angular@"~0.1100.5" from the root project

npm ERR!
npm ERR! Could not resolve dependency:

npm ERR! peer @angular/compiler@"11.1.2" from @angular/[email protected]

npm ERR! node_modules/@angular/localize

npm ERR!   peerOptional @angular/localize@"^11.0.0" from @angular-devkit/[email protected]

npm ERR!   node_modules/@angular-devkit/build-angular

npm ERR!     dev @angular-devkit/build-angular@"~0.1100.5" 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 C:UsersJatinKumarAppDataLocal
pm-cacheeresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:

npm ERR!     C:UsersJatinKumarAppDataLocal
pm-cache\_logs2021-02-04T19_41_41_433Z-debug.log
[ERROR] An error occurred while running subprocess npm.

npm.cmd i exited with exit code 1.

Re-running this command with the --verbose flag may provide more information.
question from:https://stackoverflow.com/questions/66052831/ionic-start-with-blank-template-giving-error

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

run npm install --force and then

npm install --save-dev --force

Now you can run your project!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.8k users

...