在运行bin/build-administration.sh时,我们得到
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: eslint-config-airbnb-base@13.2.0
npm ERR! Found: eslint@7.10.0
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/eslint-plugin@5.1.0
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 eslint-config-airbnb-base@13.2.0
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/eslint-config-base@1.0.0
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: eslint@5.16.0
npm ERR! node_modules/eslint
npm ERR! peer eslint@"^4.19.1 || ^5.3.0" from eslint-config-airbnb-base@13.2.0
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/eslint-config-base@1.0.0
npm ERR! node_modules/@shopware-ag/eslint-config-base
npm ERR! @shopware-ag/eslint-config-base@"1.0.0" from the root project我们正在使用这个版本:
$ npm -v
8.11.0
$ node -v
v16.15.1和Shopware 6.4.11.1
国家预防机制8.5似乎起了作用。
我想知道这是Shopware中的bug还是npm中的错误?
我想有些东西需要在Shopware中更新吗?
发布于 2022-06-08 06:37:23
在项目文件夹中运行npm config set legacy-peer-deps=true
https://stackoverflow.com/questions/72540971
复制相似问题