使用 GIT_USER=<github-username> 在 GitHub 页面上部署 Docusaurus V2 yarn deploy 打印“-bash:没有这样的文件”

Deploying Docusaurus V2 on GitHub Pages with GIT_USER=<github-username> yarn deploy prints "-bash: No such file"

我找不到任何适用的信息,希望得到一些帮助:

我正在尝试使用 WSL 命令行将 Docusaurus V2 站点部署到 GitHub 页面。 我正在使用 GIT_USER=<github_username> yarn deploy 命令。这不起作用并打印 -bash: github_username: No such file or directory.

github_username 不是文件或目录,据我所知,这是一种使用 GitHub 进行身份验证的方法。以下是文档:https://docusaurus.io/docs/deployment

提前感谢您对此的任何指点!

编辑:忘记在此处的命令中包含 = 。我使用了带等号的命令,它仍然 returns 这个错误。

问题是节点版本过时。更新后一切正常!