0

当我尝试时npm run deploy,发生错误。我无法理解错误信息...我该如何解决这个问题?

> habit-tracker@0.1.0 deploy
> gh-pages -d build

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).
npm ERR! code 1
npm ERR! path C:\Users\me\react_projects\react-basic\habit-tracker
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c gh-pages -d build

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\me\AppData\Local\npm-cache\_logs\2021-03-22T06_15_37_037Z-debug.log
4

0 回答 0