我今天用命令cf push试图把本地应用部署到SAP云平台时,遇到如下错误信息:
Connection: Upgrade
Sec-Websocket-Accept: 3wwutB8PKFMvoiGOF8UrAwhGA78=
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;
----. > Nodejs Buildpack version 1.6.43
-----> Installing binaries
engines. node (package.json): 8.9.1
engines.npm (package. json): unspecified (use default)
**ERROR** Unable to install node: no match found for 8.9.1 in [6.15.1 6.16.0 8.14.1 8.15.0 9.11.2 10.15.0 10.15.1 11.8.0 11.9.0]
Failed to compile droplet: Failed to run all supply scripts: exit status 14
Exit status 223
Cell b594399c-de8a-43a6-9ebo-cacc6926de48 stopping instance e697193e-77b3-4ed5-9deb-d6681b0e49e7
我查看我本文工程的package.json,发现我指定的nodejs版本为8.9.1:
而SAP云平台支持的版本为**ERROR** Unable to install node: no match found for 8.9.1 in [6.15.1 6.16.0 8.14.1 8.15.0 9.11.2 10.15.0 10.15.1 11.8.0 11.9.0]
当我把package.json里的版本改成其中之一,比如8.14.1后重新部署,问题消失