2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

PR: JISOU | Reactプログラミングコーチング
AIで不安を感じたら!    JISOUメンバー募集中

「Error: Command `vercel deploy` requires confirmation. Use option "--yes" to confirm.」の解決方法【Vercel CLI】

2
Posted at

はじめに

VercelのCDパイプライン作成中にエラーが発生しました。

問題

実行したコマンド

npx vercel --prod --token ${{secrets.VERCEL_TOKEN}}

発生したエラー

Error: Command `vercel deploy` requires confirmation. Use option "--yes" to confirm.

解決方法

npx vercel --prod --token ${{secrets.VERCEL_TOKEN}} --yes

yesオプションをつけて対話プロンプトをスキップするようにしました。

おわりに

ターミナルで実行できたコマンドでもGitHub Actionsだと動かない状況があるので対話プロンプトやGit追跡対象外のフォルダに注意したいです。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?