質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.47%
Nefry

Nefryは、インターネットサービスとハードウェアを接続できる小型のモジュール。Wi-Fi環境があれば、Milkcocoa、myThings、IFTTTといったサービスに容易に接続することが可能です。

Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

Q&A

2回答

3477閲覧

netlifyのdeployがうまくいかない .

退会済みユーザー

退会済みユーザー

総合スコア0

Nefry

Nefryは、インターネットサービスとハードウェアを接続できる小型のモジュール。Wi-Fi環境があれば、Milkcocoa、myThings、IFTTTといったサービスに容易に接続することが可能です。

Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

0グッド

0クリップ

投稿2021/08/29 08:50

前提・実現したいこと

  • VuePressで作ったものをnetlifyをデプロイしようとしているのですがうまくできません

発生している問題・エラーメッセージ

──────────────────────────────────────────────────────────────── 5:32:49 PM: "build.command" failed 5:32:49 PM: ──────────────────────────────────────────────────────────────── 5:32:49 PM: ​ 5:32:49 PM: Error message 5:32:49 PM: Command failed with exit code 127: npn run built 5:32:49 PM: ​ 5:32:49 PM: Error location 5:32:49 PM: In Build command from Netlify app: 5:32:49 PM: npn run built 5:32:49 PM: ​ 5:32:49 PM: Resolved config 5:32:49 PM: build: 5:32:49 PM: command: npn run built 5:32:49 PM: commandOrigin: ui 5:32:49 PM: publish: /opt/build/repo/docs/.vuepress/dist 5:32:49 PM: publishOrigin: ui 5:32:49 PM: Caching artifacts 5:32:49 PM: Started saving node modules 5:32:49 PM: Finished saving node modules 5:32:49 PM: Started saving build plugins 5:32:49 PM: Finished saving build plugins 5:32:49 PM: Started saving yarn cache 5:32:52 PM: Finished saving yarn cache 5:32:52 PM: Started saving pip cache 5:32:52 PM: Finished saving pip cache 5:32:52 PM: Started saving emacs cask dependencies 5:32:52 PM: Finished saving emacs cask dependencies 5:32:52 PM: Started saving maven dependencies 5:32:52 PM: Finished saving maven dependencies 5:32:52 PM: Started saving boot dependencies 5:32:52 PM: Finished saving boot dependencies 5:32:52 PM: Started saving rust rustup cache 5:32:52 PM: Finished saving rust rustup cache 5:32:52 PM: Started saving go dependencies 5:32:52 PM: Finished saving go dependencies 5:32:55 PM: Build failed due to a user error: Build script returned non-zero exit code: 2 5:32:55 PM: Creating deploy upload records 5:32:55 PM: Failing build: Failed to build site 5:32:55 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 5:32:55 PM: Finished processing build request in 44.432863922s

Build settings

Build settings Repository github.com/Yamaguchi-shuhei/portfolio Base directory Not set Build command npn run built Publish directory docs/.vuepress/dist Deploy log visibility Logs are public Builds Active Learn more about common configuration directives in the docs

試したこと

  • yarnで同じようにビルドして行ったがほとんどおなじerrorができた

ここに問題に対して試したことを記載してください.

補足情報

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

Netlifyの公式ドキュメントにも記載があります。

https://docs.netlify.com/configure-builds/common-configurations/#vuepress

投稿2021/08/29 09:39

mather

総合スコア6753

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

リポジトリの内容と一般的なコマンドのあり方だと

npn run built ではなく、
npm run build ではないでしょうか。(2箇所のtypo)

投稿2021/08/29 09:06

attakei

総合スコア2738

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

退会済みユーザー

退会済みユーザー

2021/08/29 09:14 編集

``` "build.command" failed 6:10:59 PM: ──────────────────────────────────────────────────────────────── 6:10:59 PM: ​ 6:10:59 PM: Error message 6:10:59 PM: Command failed with exit code 1: npm run built 6:10:59 PM: ​ 6:10:59 PM: Error location 6:10:59 PM: In Build command from Netlify app: 6:10:59 PM: npm run built 6:10:59 PM: ​ 6:10:59 PM: Resolved config 6:10:59 PM: build: 6:10:59 PM: command: npm run built 6:10:59 PM: commandOrigin: ui 6:10:59 PM: publish: /opt/build/repo/docs/.vuepress/dist 6:10:59 PM: publishOrigin: ui 6:10:59 PM: Caching artifacts 6:10:59 PM: Started saving node modules 6:10:59 PM: Finished saving node modules 6:10:59 PM: Started saving build plugins 6:10:59 PM: Finished saving build plugins 6:10:59 PM: Started saving yarn cache 6:11:02 PM: Finished saving yarn cache 6:11:02 PM: Started saving pip cache 6:11:02 PM: Finished saving pip cache 6:11:02 PM: Started saving emacs cask dependencies 6:11:02 PM: Finished saving emacs cask dependencies 6:11:02 PM: Started saving maven dependencies 6:11:02 PM: Finished saving maven dependencies 6:11:02 PM: Started saving boot dependencies 6:11:02 PM: Finished saving boot dependencies 6:11:02 PM: Started saving rust rustup cache 6:11:02 PM: Finished saving rust rustup cache 6:11:02 PM: Started saving go dependencies 6:11:02 PM: Finished saving go dependencies 6:11:05 PM: Build failed due to a user error: Build script returned non-zero exit code: 2 6:11:05 PM: Creating deploy upload records 6:11:05 PM: Failing build: Failed to build site 6:11:05 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 6:11:05 PM: Finished processing build request in 43.248800876s と出てしまいました. ```
attakei

2021/08/29 13:24

npm run build です( t ではなく d )
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.47%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問