Q&A
前提
Next.jsで作成したものをcloudflareにデプロイする際にエラーが発生。
実現したいこと
Next.jsで作成したものをGit連携でcloudflareにデプロイしたい。
発生している問題・エラーメッセージ
2022-08-05T10:01:09.826336Z Cloning repository... 2022-08-05T10:01:11.071557Z From https://github.com/******************** 2022-08-05T10:01:11.072073Z * branch ******************** -> FETCH_HEAD 2022-08-05T10:01:11.072287Z 2022-08-05T10:01:11.142926Z HEAD is now at ******************** 2022-08-05T10:01:11.143435Z 2022-08-05T10:01:11.284468Z 2022-08-05T10:01:11.311632Z Success: Finished cloning repository files 2022-08-05T10:01:11.897695Z Installing dependencies 2022-08-05T10:01:11.908951Z Python version set to 2.7 2022-08-05T10:01:15.393708Z v12.18.0 is already installed. 2022-08-05T10:01:16.625215Z Now using node v12.18.0 (npm v6.14.4) 2022-08-05T10:01:16.853876Z Started restoring cached build plugins 2022-08-05T10:01:16.869614Z Finished restoring cached build plugins 2022-08-05T10:01:17.361457Z Attempting ruby version 2.7.1, read from environment 2022-08-05T10:01:20.962941Z Using ruby version 2.7.1 2022-08-05T10:01:21.325384Z Using PHP version 5.6 2022-08-05T10:01:21.489478Z 5.2 is already installed. 2022-08-05T10:01:21.517178Z Using Swift version 5.2 2022-08-05T10:01:21.517548Z Installing Hugo 0.54.0 2022-08-05T10:01:22.199347Z Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z 2022-08-05T10:01:22.202753Z Started restoring cached go cache 2022-08-05T10:01:22.222159Z Finished restoring cached go cache 2022-08-05T10:01:22.369806Z go version go1.14.4 linux/amd64 2022-08-05T10:01:22.384844Z go version go1.14.4 linux/amd64 2022-08-05T10:01:22.387625Z Installing missing commands 2022-08-05T10:01:22.387954Z Verify run directory 2022-08-05T10:01:22.388196Z Executing user command: next build && next export 2022-08-05T10:01:22.393293Z /opt/build/bin/build: line 39: next: command not found 2022-08-05T10:01:22.398587Z Failed: build command exited with code: 127 2022-08-05T10:01:23.06824Z Failed: an internal error occurred
補足情報(FW/ツールのバージョンなど)
node version v18.4.0
"next": "12.2.3",
"react": "18.2.0",
"react-dom": "18.2.0",
回答1件
あなたの回答
tips
プレビュー
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。