When running bin/build-administration.sh
we get
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR! dev eslint@"7.10.0" from the root project
npm ERR! peer eslint@"^6.0.0 || ^7.0.0 || ^8.0.0" from @typescript-eslint/[email protected]
npm ERR! node_modules/@typescript-eslint/eslint-plugin
npm ERR! @typescript-eslint/eslint-plugin@"5.1.0" from the root project
npm ERR! 14 more (@typescript-eslint/experimental-utils, eslint-utils, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^4.19.1 || ^5.3.0" from [email protected]
npm ERR! node_modules/eslint-config-airbnb-base
npm ERR! dev eslint-config-airbnb-base@"13.2.0" from the root project
npm ERR! eslint-config-airbnb-base@"^13.2.0" from @shopware-ag/[email protected]
npm ERR! node_modules/@shopware-ag/eslint-config-base
npm ERR! @shopware-ag/eslint-config-base@"1.0.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/eslint
npm ERR! peer eslint@"^4.19.1 || ^5.3.0" from [email protected]
npm ERR! node_modules/eslint-config-airbnb-base
npm ERR! dev eslint-config-airbnb-base@"13.2.0" from the root project
npm ERR! eslint-config-airbnb-base@"^13.2.0" from @shopware-ag/[email protected]
npm ERR! node_modules/@shopware-ag/eslint-config-base
npm ERR! @shopware-ag/eslint-config-base@"1.0.0" from the root project
We are using this versions:
$ npm -v
8.11.0
$ node -v
v16.15.1
and Shopware 6.4.11.1
With npm 8.5 it seemed to work.
I am wondering if this is a bug in Shopware or in npm?
I would guess something needs to be updated in Shopware?
CodePudding user response:
run npm config set legacy-peer-deps=true
in your project folder
this is related to https://github.com/npm/cli/issues/4664