samedi 9 avril 2022

Not able to create a new ember app - Could not resolve dependency error

I'm just trying to create a new app from scratch, but getting this error:

Command failed with exit code 1: npm install --loglevel error
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: ember-sample@0.0.0
npm ERR! Found: ember-cli@4.3.0
npm ERR! node_modules/ember-cli
npm ERR!   dev ember-cli@"~4.3.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer ember-cli@"~3.2.0" from ember-cli-dependency-checker@3.3.0
npm ERR! node_modules/ember-cli-dependency-checker
npm ERR!   dev ember-cli-dependency-checker@"^3.2.0" 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.

These are the repro steps:

open command prompt in Win11. install ember

npm install -g ember-cli

create app ember-sample

ember new ember-sample

and just after that I get the error above.

Could I be missing anything? I have already installed node v16.14.2, npm 8.5.0, ember-cli: 4.3.0 I was already taking a look on ember.js official website




Aucun commentaire:

Enregistrer un commentaire