标签: reactjs github npm github-pages next.js
我正在尝试将我的NextJS应用程序部署到Github页面。我已经安装了npm gh-pages,并且在我始终运行npm run deploy时遇到错误。
npm run deploy
有人在想为什么会这样吗?
这是我运行命令时出现的错误:
这是我的调试日志文件:
非常感谢您的帮助。
答案 0 :(得分:1)
解决了这个问题。我只是使用nvm将npm版本切换到12.15.0。我运行nvm use 12.15.0.
nvm use 12.15.0.