微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Next.js - yarn dev: error 命令失败,信号为“SIGSEGV”

如何解决Next.js - yarn dev: error 命令失败,信号为“SIGSEGV”

每当我运行 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.

package.json

{
  "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"
  }
}

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。