部署项目时出现 digital ocean 错误代码 1 非零退出

发布于 2025-01-12 00:55:01 字数 1715 浏览 0 评论 0原文

我正在尝试部署一个我在 C# 和 Angular 中使用 .NET 开发的小项目,以及数字海洋,但在构建阶段出现此错误。

这是日志:

发生: 配置对象无效。 Webpack 已使用初始化 与 API 模式不匹配的配置对象。 2022-03-04T12:03:27.319208660Z-configuration.entry['styles'] 不应包含该项目
'/workspace/node_modules/bootstrap/dist/css/bootstrap.min.css' 两次。 2022-03-04T12:03:27.319229420Z ->非空数组 非空字符串 2022-03-04T12:03:27.319943436Z 请参阅
“/tmp/ng-Tl3lYK/angular-errors.log”了解更多详细信息。
2022-03-04T12:03:27.334326859Z npm 错误!代码 ELIFECYCLE
2022-03-04T12:03:27.334359695Z npm 错误!系统调用生成
2022-03-04T12:03:27.334365753Z npm 错误!文件sh
2022-03-04T12:03:27.334370574Z npm 错误!错误号 ENOENT
2022-03-04T12:03:27.337355865Z npm 错误! [电子邮件受保护] 构建:ng build 2022-03-04T12:03:27.337415913Z npm 错误!生成 ENOENT
2022-03-04T12:03:27.337866101Z npm 错误!
2022-03-04T12:03:27.337888153Z npm 错误! [电子邮件受保护] 失败 构建脚本。 2022-03-04T12:03:27.337904134Z npm 错误!这是
可能不是 npm 的问题。可能有额外的日志记录 输出如上。 2022-03-04T12:03:27.344947118Z
2022-03-04T12:03:27.345024987Z npm 错误!本次运行的完整日志
可以在以下位置找到:2022-03-04T12:03:27.345641712Z npm ERR!
/home/apps/.npm/_logs/2022-03-04T12_03_27_338Z-debug.log
2022-03-04T12:03:27.355261167Z 大楼:退出状态 1
2022-03-04T12:03:27.357422543Z [31;1m错误: [0m构建失败:
退出状态 1 2022-03-04T12:03:37.520418180Z
2022-03-04T12:03:37.520457560Z 有关构建包的文档
用于构建您的应用程序,请参阅:2022-03-04T12:03:37.520462908Z
Node.js:https://do.co/apps-buildpack-node
2022-03-04T12:03:37.520469910Z 2022-03-04T12:03:37.520742420Z [31m !构建失败 (145)[0m

I'm trying to deploy a small project I developed using .NET in C# and angular, with digital ocean but I get this error at the build phase.

here is the log:

occurred:
Invalid configuration object. Webpack has been initialised using
a configuration object that does not match the API schema.
2022-03-04T12:03:27.319208660Z - configuration.entry['styles']
should not contain the item
'/workspace/node_modules/bootstrap/dist/css/bootstrap.min.css'
twice. 2022-03-04T12:03:27.319229420Z -> A non-empty array of
non-empty strings 2022-03-04T12:03:27.319943436Z See
"/tmp/ng-Tl3lYK/angular-errors.log" for further details.
2022-03-04T12:03:27.334326859Z npm ERR! code ELIFECYCLE
2022-03-04T12:03:27.334359695Z npm ERR! syscall spawn
2022-03-04T12:03:27.334365753Z npm ERR! file sh
2022-03-04T12:03:27.334370574Z npm ERR! errno ENOENT
2022-03-04T12:03:27.337355865Z npm ERR! [email protected] build: ng build 2022-03-04T12:03:27.337415913Z npm ERR! spawn ENOENT
2022-03-04T12:03:27.337866101Z npm ERR!
2022-03-04T12:03:27.337888153Z npm ERR! Failed at the [email protected]
build script. 2022-03-04T12:03:27.337904134Z npm ERR! This is
probably not a problem with npm. There is likely additional logging
output above. 2022-03-04T12:03:27.344947118Z
2022-03-04T12:03:27.345024987Z npm ERR! A complete log of this run
can be found in: 2022-03-04T12:03:27.345641712Z npm ERR!
/home/apps/.npm/_logs/2022-03-04T12_03_27_338Z-debug.log
2022-03-04T12:03:27.355261167Z building: exit status 1
2022-03-04T12:03:27.357422543Z [31;1mERROR: [0mfailed to build:
exit status 1 2022-03-04T12:03:37.520418180Z
2022-03-04T12:03:37.520457560Z For documentation on the buildpacks
used to build your app, please see: 2022-03-04T12:03:37.520462908Z
Node.js: https://do.co/apps-buildpack-node
2022-03-04T12:03:37.520469910Z 2022-03-04T12:03:37.520742420Z [31m
! Build failed (145)[0m

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文