首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Next.js -纱线开发:错误命令失败,信号"SIGSEGV“

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

Stack Overflow用户
提问于 2021-06-17 12:07:35
回答 1查看 5K关注 0票数 8

每当我运行yarn devnpm run dev时,我都会遇到这个问题。

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

package.json

代码语言:javascript
复制
{
  "name": "nextjs",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start"
  },
  "dependencies": {
    "next": "^10.2.3",
    "react": "17.x",
    "react-dom": "17.x",
    "webpack": "^5.39.1"
  },
  "devDependencies": {
    "webpack-cli": "^4.7.2"
  }
}
EN

回答 1

Stack Overflow用户

发布于 2022-05-24 18:01:33

Mac M1作为@Fernando Gomes commented似乎是个问题。

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

代码语言:javascript
复制
docker buildx build --platform linux/amd64 .
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68019023

复制
相关文章

相似问题

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