【问题标题】:How can I fix this error on Vercel deploy?如何在 Vercel 部署中修复此错误?
【发布时间】:2022-02-05 23:24:55
【问题描述】:

希望你一切都好。 我试图在 Vercel 上部署我的投资组合只是为了看看它是如何进行的,我收到以下错误: “错误:命令“npm run build”以 127 退出”

Error picture

所以,在我收到此错误后,我无法部署它。 谁能帮帮我?

【问题讨论】:

    标签: angular npm deployment vercel portfolio


    【解决方案1】:

    转到您的 angular.json,在 json 的构建块下的该 json 中将有一个 fileReplacement 配置。纠正/删除它,因为根据此错误,带有属性的文件不存在。您可以在此处阅读有关文件替换的更多信息:-

    https://angular.io/guide/build#configure-target-specific-file-replacements

    【讨论】:

      猜你喜欢
      • 2020-11-08
      • 2022-01-17
      • 1970-01-01
      • 2020-10-04
      • 2021-05-22
      • 2022-08-08
      • 2022-10-20
      • 2012-07-15
      • 2022-11-19
      相关资源
      最近更新 更多