-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Please set the GIT_USER environment variable! #3389
Comments
Hi, I don't know enough about windows nor have a windows computer to test this, but maybe you could try to use I guess the syntax may also depend on the Windows kind of shell you use. You'd rather ask for help to the community on discord, I'm pretty sure you'll find someone that is able to deploy from Windows here |
Thanks, can you try again with simple quotes @novoselovaleksandr ? Also, any help to improve windows doc is welcome ;) |
Faced same error. Switching to window's default cmd worked. |
Resolved in #3459 |
This also happened to me on Macos, so I can confirm it's not a Windows thing. |
配置环境变量 |
I'm also facing this issue PS F:\personal-sites\code-harbor-hub> npm run deploy
> code-harbor-hub@0.0.0 deploy
> docusaurus deploy
[WARNING] When deploying to GitHub Pages, it is better to use an explicit "trailingSlash" site config.
Otherwise, GitHub Pages will add an extra trailing slash to your site urls only on direct-access (not when navigation) with a server redirect.
This behavior can have SEO impacts and create relative link issues.
[INFO] Deploy command invoked...
Error: Please set the GIT_USER environment variable, or explicitly specify USE_SSH instead!
at Command.deploy (F:\personal-sites\code-harbor-hub\node_modules\@docusaurus\core\lib\commands\deploy.js:70:19)
[INFO] Docusaurus version: 3.1.1
Node version: v20.10.0
PS F:\personal-sites\code-harbor-hub> |
🐛 Bug Report
I can not deploy my docusaurus site. I try:
cmd /C "set "GIT_USER=novoselovaleksandr" USE_SSH=true && yarn deploy"
and i get an error:
This is a part of my docusaurus.config.js
what am I doing wrong?
my repository
The text was updated successfully, but these errors were encountered: