首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法用NPM8.11构建Shopware 6管理

无法用NPM8.11构建Shopware 6管理
EN

Stack Overflow用户
提问于 2022-06-08 06:25:07
回答 1查看 334关注 0票数 0

在运行bin/build-administration.sh时,我们得到

代码语言:javascript
复制
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

我们正在使用这个版本:

代码语言:javascript
复制
$ npm -v
8.11.0
$ node -v
v16.15.1

和Shopware 6.4.11.1

国家预防机制8.5似乎起了作用。

我想知道这是Shopware中的bug还是npm中的错误?

我想有些东西需要在Shopware中更新吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-06-08 06:37:23

在项目文件夹中运行npm config set legacy-peer-deps=true

这与https://github.com/npm/cli/issues/4664有关

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72540971

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档