无法将 angular 应用部署到 openshift:"Argument error, options.body."
cannot deply angular app to openshift: "Argument error, options.body."
我正在尝试将 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.
检查您的 nodeshift
版本。最近发生在我身上,因为我正在使用 3.1。升级到最新版本 (6.0.2) 解决了问题。
我正在尝试将 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.
检查您的 nodeshift
版本。最近发生在我身上,因为我正在使用 3.1。升级到最新版本 (6.0.2) 解决了问题。