Next.js - 纱线开发:错误命令失败,信号为“SIGSEGV”

fan*_*oJr 8 npm package.json yarnpkg next.js

每当我跑步yarn devnpm run dev

yarn run v1.22.10
warning ../../../../package.json: No license field
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Using webpack 5. Reason: no next.config.js https://nextjs.org/docs/messages/webpack5
event - compiled successfully
event - build page: /
wait  - compiling...
error Command failed with signal "SIGSEGV".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Run Code Online (Sandbox Code Playgroud)

package.json

yarn run v1.22.10
warning ../../../../package.json: No license field
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Using webpack 5. Reason: no next.config.js https://nextjs.org/docs/messages/webpack5
event - compiled successfully
event - build page: /
wait  - compiling...
error Command failed with signal "SIGSEGV".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Run Code Online (Sandbox Code Playgroud)

Edu*_*omo 4

正如@Fernando Gomes评论的那样,这似乎是Mac M1的问题。

为了让它在我的环境中运行,我使用具有以下参数的Docker

docker buildx build --platform linux/amd64 .
Run Code Online (Sandbox Code Playgroud)