gpt4 book ai didi

ibm-cloud - cf 推送到 IBM Cloud 失败 : Unable to install node: improper constraint: >=4. 1.0 <5.5.0

转载 作者:行者123 更新时间:2023-12-05 06:22:41 24 4
gpt4 key购买 nike

我在一个小改动后将应用程序推送到 IBM Cloud(只有一些数据,没有代码或依赖项)。

cat: /VERSION: No such file or directory
-----> IBM SDK for Node.js Buildpack v4.0.1-20190930-1425
Based on Cloud Foundry Node.js Buildpack 1.6.53

-----> Installing binaries
engines.node (package.json): >=4.1.0 <5.5.0
engines.npm (package.json): unspecified (use default)
**WARNING** Dangerous semver range (>) in engines.node. See: http://docs.cloudfoundry.org/buildpacks/node/node-tips.html
**ERROR** Unable to install node: improper constraint: >=4.1.0 <5.5.0
Failed to compile droplet: Failed to run all supply scripts: exit status 14
Exit status 223
Cell 155a85d3-8d60-425c-8e39-3a1183bfec2a stopping instance 5aad9d60-87d7-4153-b1ac-c3847c9a7a83
Cell 155a85d3-8d60-425c-8e39-3a1183bfec2a destroying container for instance 5aad9d60-87d7-4153-b1ac-c3847c9a7a83
Cell 155a85d3-8d60-425c-8e39-3a1183bfec2a successfully destroyed container for instance 5aad9d60-87d7-4153-b1ac-c3847c9a7a83

FAILED
Error restarting application: BuildpackCompileFailed

该应用程序的旧版本已经在 IBM Cloud 上运行(我认为是从 2019 年 5 月开始)。所以我想知道发生了什么变化,所以它不再工作了。

最佳答案

在 IBM Cloud Foundry 中,必须像这样指定 Node.js 版本

"engines": {
"node": "12.x"
}

"engines": {
"node": "12.10.x"
}

关于ibm-cloud - cf 推送到 IBM Cloud 失败 : Unable to install node: improper constraint: >=4. 1.0 <5.5.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58983626/

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