gpt4 book ai didi

node.js - 无法将 Angular 应用程序部署到openshift: “Argument error, options.body.”

转载 作者:行者123 更新时间:2023-12-02 11:55:36 25 4
gpt4 key购买 nike

我正在尝试将angular8应用程序部署到Openshift。
我遵循了一些教程,并且尝试通过命令行来实现。
我创建了package.json文件,然后运行了以下命令:

>npx nodeshift --strictSSL=false --dockerImage=bucharestgold/centos7-s2i-web-app --imageTag=10.x --build.env OUTPUT_DIR=dist/readXchange-frontend --expose

我有一个错误,我在互联网上找不到任何东西,这里是日志:
2020-04-09T14:16:22.769Z INFO loading configuration
2020-04-09T14:16:22.814Z INFO using namespace readshare at https://api.us-east-2.starter.openshift-online.com:6443
2020-04-09T14:16:22.830Z WARNING a file property was not found in your package.json, archiving the current directory.
2020-04-09T14:16:22.830Z INFO creating archive of .editorconfig, .gitignore, angular.json, browserslist, dist, e2e, karma.conf.js, npx, package-lock.json, package.json, README.md, src, tsconfig.app.json, tsconfig.json, tsconfig.spec.json, tslint.json
2020-04-09T14:16:24.050Z INFO using existing build configuration read-xchange-frontend-s2i
2020-04-09T14:16:24.505Z INFO using existing image stream read-xchange-frontend
2020-04-09T14:16:24.511Z INFO uploading binary archive C:\Users\USER\CODE\angular\readXchange-frontend/tmp/nodeshift/build/archive.tar
2020-04-09T14:16:24.522Z ERROR Argument error, options.body

你们知道发生了什么吗?非常感谢!

最佳答案

“bucharestgold / centos7-s2i-web-app”已被弃用,您应该尝试使用此https://github.com/nodeshift/ubi8-s2i-web-app

关于node.js - 无法将 Angular 应用程序部署到openshift: “Argument error, options.body.”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61123410/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com