NPM ERR - Can't resolve BPMN own dependancies?

I am trying to install some libraries which have nothing to do with BPMN itself but I get the following errors about BPMN:

$ npm install --save-dev webpack-merge
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: bpmn-js-collapse-subprocess@0.1.1
npm ERR! Found: bpmn-js@9.4.1
npm ERR! node_modules/bpmn-js
npm ERR! peer bpmn-js@β€œ>= 5” from bpmn-js-color-picker@0.4.0
npm ERR! node_modules/bpmn-js-color-picker
npm ERR! bpmn-js-color-picker@β€œ^0.4.0” from the root project
npm ERR! bpmn-js@β€œ*” from bpmn-js-task-resize@1.2.0
npm ERR! node_modules/bpmn-js-task-resize
npm ERR! bpmn-js-task-resize@β€œ^1.2.0” from the root project
npm ERR! 1 more (the root project)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer bpmn-js@β€œ6.x || 7.x” from bpmn-js-collapse-subprocess@0.1.1
npm ERR! node_modules/bpmn-js-collapse-subprocess
npm ERR! bpmn-js-collapse-subprocess@β€œ^0.1.1” from the root project
npm ERR!
npm ERR! Conflicting peer dependency: bpmn-js@7.5.0
npm ERR! node_modules/bpmn-js
npm ERR! peer bpmn-js@β€œ6.x || 7.x” from bpmn-js-collapse-subprocess@0.1.1
npm ERR! node_modules/bpmn-js-collapse-subprocess
npm ERR! bpmn-js-collapse-subprocess@β€œ^0.1.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.

This project that I am trying to install said libraries is filled with BPMN libs itself like shown in the error and it looks like they are conflicting? I am avoiding using --legacy-peer-deps at the moment because I would like to know if there’s anything I should do before ignoring the errors, because it just seems off that they are conflicting.

Any suggestions?

This is standard npm@8+ behavior. You have to fix these dependencies (ensure only what is compatible is put together) or start to install/update all things using --legacy-peer-deps.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.