如何在安装Saleor时解决Docker-Compose构成大容量错误?

发布于 2025-02-03 08:48:03 字数 1169 浏览 4 评论 0原文

runnung docker-compose build,我得到了这个错误。 我已经使用npm install -G pnpm安装了PNPM,但仍会发生同样的错误。

=> ERROR [saleor-platform_react-storefront 8/9] RUN pnpm install                                 
=> [saleor-platform_dashboard 4/5] RUN npm install 
=> CANCELED [saleor-platform_api build-python 5/5] RUN pip install -r requirements_dev.txt 

我在哪里编辑来自? .sstatic.net/30IiW.png" rel="nofollow noreferrer">

Peer dependencies that should be installed:                                         -dependencies" setting to "false".   
#0 108.6   graphql-tag@^2.0.0                                                                -dependenc
#0 108.6
#0 108.6 hint: If you want peer dependencies to be automatically installed, set the "auto-install-peers" setting to "true".
#0 108.6 hint: If you don't want pnpm to fail on peer dependency issues, set the "strict-peer-dependencies" setting to "false".
#0 108.6
------
failed to solve: executor failed running [/bin/sh -c pnpm install]: exit code: 1

Runnung docker-compose build, I get this error.
I have installed pnpm using npm install -g pnpm but still the same error occurs.

=> ERROR [saleor-platform_react-storefront 8/9] RUN pnpm install                                 
=> [saleor-platform_dashboard 4/5] RUN npm install 
=> CANCELED [saleor-platform_api build-python 5/5] RUN pip install -r requirements_dev.txt 

Where do I edit the peer dependencies settings from?

Peer dependencies that should be installed:                                         -dependencies" setting to "false".   
#0 108.6   graphql-tag@^2.0.0                                                                -dependenc
#0 108.6
#0 108.6 hint: If you want peer dependencies to be automatically installed, set the "auto-install-peers" setting to "true".
#0 108.6 hint: If you don't want pnpm to fail on peer dependency issues, set the "strict-peer-dependencies" setting to "false".
#0 108.6
------
failed to solve: executor failed running [/bin/sh -c pnpm install]: exit code: 1

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鹤舞 2025-02-10 08:48:03

将以下行添加到 React-Store-StoreFront/dockerfile.dev

RUN npm install -g [email protected]

之前,然后

RUN pnpm install

再构建/向上运行/向上运行。

资料来源: https://github.com/saleor/saleor/saleor/saleor/saleor/saleor/sale/sales/97644# ISSUECOMMENT-1127050108

Add the following line to the react-storefront/Dockerfile.dev

RUN npm install -g [email protected]

Before the this line

RUN pnpm install

And run build/up again.

Source: https://github.com/saleor/saleor/issues/9764#issuecomment-1127050108

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文