運行時bin/build-administration.sh我們得到
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
我們正在使用這個版本:
$ npm -v
8.11.0
$ node -v
v16.15.1
和購物軟體 6.4.11.1
使用 npm 8.5 似乎可以正常作業。
我想知道這是 Shopware 還是 npm 中的錯誤?
我猜想 Shopware 中需要更新一些東西?
uj5u.com熱心網友回復:
npm config set legacy-peer-deps=true在您的專案檔案夾中運行
這與https://github.com/npm/cli/issues/4664有關
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/487760.html
