在 Netlify 上部署新项目开始失败。检查日志,我看到以前成功部署的日志中没有的内容:
Treating warnings as errors because process.env.CI = true.
Most CI servers set it automatically.
Failed to compile.
我该如何修复我的构建?
您需要在构建命令期间使 CI 为 false。
Go to: https://app.netlify.com/sites/mysales-krohne/settings/deploys https://app.netlify.com/sites/mysales-krohne/settings/deploys > 构建命令并将其更改为:
CI=false npm 运行构建
现在,重建您的部署。应该没问题了。
如果您想了解更多相关信息。我写了一篇关于这个主题的博客:https://360techexplorer.com/treating-warnings-as-errors-because-process-env-ci-true-vercel-netlify-jenkins-etc/ https://360techexplorer.com/treating-warnings-as-errors-because-process-env-ci-true-vercel-netlify-jenkins-etc/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)