Skip to content

invenio buildall results in unable to resolve dependency tree error #142

@thms-rmb

Description

@thms-rmb

Package version (if known): v1.2.7

Describe the bug

Unable to install with the invenio buildall command because of a dependency resolution problem. Actually, the problem can also be seen if I clone this repository and just run npm install directly in the assets directory.

Steps to Reproduce

  1. Clone the repository (git clone https://github.com/inveniosoftware/invenio-assets.git)
  2. Go into the assets directory (cd invenio-assets/invenio_assets/assets)
  3. Do npm install
  4. See the following error:
Thomass-MacBook-Pro-2:assets thomasrambo$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"^7.7.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^5.0.0 || ^6.0.0" from @typescript-eslint/[email protected]
npm ERR! node_modules/@typescript-eslint/parser
npm ERR!   peer @typescript-eslint/parser@"2.x" from [email protected]
npm ERR!   node_modules/eslint-config-react-app
npm ERR!     dev eslint-config-react-app@"^5.2.1" from the root project
npm ERR!   peer @typescript-eslint/parser@"^2.0.0" from @typescript-eslint/[email protected]
npm ERR!   node_modules/@typescript-eslint/eslint-plugin
npm ERR!     peer @typescript-eslint/eslint-plugin@"2.x" from [email protected]
npm ERR!     node_modules/eslint-config-react-app
npm ERR!       dev eslint-config-react-app@"^5.2.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 /Users/thomasrambo/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/thomasrambo/.npm/_logs/2022-03-28T16_47_53_174Z-debug-0.log

Expected behavior

I expect to be able to run the invenio buildall command (or alternatively just doing npm install directly in the assets directory).

Other things

I am using NPM version 8.5.5 installed with homebrew. I am running on MacOS Monterey version 12.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions