Skip to content

Unable to resolve dependency tree error when installing npm packages. #146

@andrealba

Description

@andrealba

After :
npm init -y
when i send this instruction:
npx install-peerdeps --dev eslint-config-wesbos
it returns this:

install-peerdeps v3.0.7
Installing peerdeps for eslint-config-wesbos@latest.
npm install eslint-config-wesbos@4.3.2 eslint@^8.0.0 prettier@>=3.0.0 typescript@^5.0.0 --save-dev


ERR npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: maxblox-extension@1.0.0
npm error Found: typescript@undefined
npm error node_modules/typescript
npm error   dev typescript@"5.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer typescript@"^4.8.4 || ^5.0.0" from eslint-config-wesbos@4.3.2
npm error node_modules/eslint-config-wesbos
npm error   dev eslint-config-wesbos@"4.3.2" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:

Is it possible a package in your

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions