前提・実現したいこと
- 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ができた
ここに問題に対して試したことを記載してください.
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。