运行npm run deploy时出现错误

时间:2020-03-03 07:38:31

标签: reactjs github npm github-pages next.js

我正在尝试将我的NextJS应用程序部署到Github页面。我已经安装了npm gh-pages,并且在我始终运行npm run deploy时遇到错误。

有人在想为什么会这样吗?

这是我运行命令时出现的错误:

enter image description here

这是我的调试日志文件:

enter image description here

非常感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

解决了这个问题。我只是使用nvm将npm版本切换到12.15.0。我运行nvm use 12.15.0.