Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Can't install, npm ERR! ERESOLVE could not resolve, npm ERR! While resolving: @pixi/text-html@1.0.1 Found: @pixi/core@6.1.1 #27

Closed
bartwind opened this issue Oct 12, 2022 · 2 comments

Comments

@bartwind
Copy link

Hi,
I have problem with npm install on Laravel 8 project

package.json:

"dependencies": {
    "@pixi-essentials/bounds": "^2.1.1",
    "@pixi/graphics-smooth": "^0.0.13",
    "@pixi/text-html": "^1.0.1",
    "cocoen": "^2.0.5",
    "d-path-parser": "^1.0.0",
    "event-dispatch": "^0.4.1",
    "geometric": "^2.2.8",
    "history": "^5.3.0",
    "perfect-scrollbar": "^1.5.5",
    "pixi-svg": "^2.3.1",
    "pixi-text-input": "^1.0.6",
    "pixi.js": "^6.0.4",
    "pixijs-grid": "^0.4.1",
    "qr-scanner": "^1.2.0",
    "select2": "^4.0.13",
    "slick-carousel": "^1.8.1",
    "x2js": "^3.4.1"
  },
  "devDependencies": {
    "browser-sync": "^2.26.14",
    "browser-sync-webpack-plugin": "^2.2.2",
    "cross-env": "^6.0.3",
    "eslint": "^6.8.0",
    "laravel-mix": "^5.0.5",
    "resolve-url-loader": "^3.1.0",
    "sass": "^1.35.1",
    "sass-loader": "^8.0.2",
    "vue-template-compiler": "^2.6.11",
    "xml2js": "^0.4.23"
  }

npm install:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @pixi/text-html@1.0.1
npm ERR! Found: @pixi/core@6.1.1
npm ERR! node_modules/@pixi/core
npm ERR!   peer @pixi/core@"6.1.1" from @pixi/accessibility@6.1.1
npm ERR!   node_modules/@pixi/accessibility
npm ERR!     @pixi/accessibility@"6.1.1" from pixi.js@6.1.1
npm ERR!     node_modules/pixi.js
npm ERR!       pixi.js@"^6.0.4" from the root project
npm ERR!   peer @pixi/core@"6.1.1" from @pixi/app@6.1.1
npm ERR!   node_modules/@pixi/app
npm ERR!     @pixi/app@"6.1.1" from pixi.js@6.1.1
npm ERR!     node_modules/pixi.js
npm ERR!       pixi.js@"^6.0.4" from the root project
npm ERR!   25 more (@pixi/compressed-textures, @pixi/extract, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @pixi/core@"^5.0.0" from @pixi/text-html@1.0.1
npm ERR! node_modules/@pixi/text-html
npm ERR!   @pixi/text-html@"^1.0.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @pixi/core@5.3.12
npm ERR! node_modules/@pixi/core
npm ERR!   peer @pixi/core@"^5.0.0" from @pixi/text-html@1.0.1
npm ERR!   node_modules/@pixi/text-html
npm ERR!     @pixi/text-html@"^1.0.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.

Windows 11
Node: 16-lastest
npm: 8-latest

Regards!

@bigtimebuddy bigtimebuddy transferred this issue from pixijs/pixijs Oct 12, 2022
@bigtimebuddy
Copy link
Member

Here's how the compatibility works:

@pixi/text-html pixi.js
1.x 5.x
2.x 6.x
3.x 7.x

In your case, try to use ^2.0.0 for the @pixi/text-html version.

@bartwind
Copy link
Author

Thank you for help I will try it. Currently I had to switch node to v14 and npm v6 to run it..

Regards

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants