前提
Reactでアプリを作成し,GitHub Pagesにデプロイしようとしたところ,以下の様なエラーが出ました.
実現したいこと
Reactで作成したアプリをGitHub Pagesにデプロイしたいです.
発生している問題・エラーメッセージ
Failed to get remote.origin.url (task must either be run in a git repository with a configured origin remote or must be configured with the "repo" option).
該当のソースコード
json
1{ 2 "homepage": "https://{username}.github.io/{repositoryname}", 3 ...省略 4 }, 5 "scripts": { 6 "predeploy": "npm run build", 7 "deploy": "gh-pages -d build", 8 ...
試したこと
git remote -v でpathを確かめた結果, origin https://github.com/{username}/{repositoryname}.git (fetch) origin https://github.com/{username}/{repositoryname}.git (push) と,originにしっかりと目標のリポジトリのpathが登録されています.
以上を踏まえて,どこを修正するべきなのでしょうか.
ご回答いただけると幸いです.
あなたの回答
tips
プレビュー