指定的未知构建包名称:"sdk-for-nodejs" 在 IBM 云中

Specified unknown buildpack name: "sdk-for-nodejs" In IBM cloud

正在 IBM cloud 部署 Watson text-to-speech 实例。我遇到错误。

Pushing from manifest to org xx / space dev as xxx...
Using manifest file /workspace/f82d9eab-796e-43c6-89cd-79ccd38c9063/manifest.yml
Getting app info...
Creating app with these attributes...
+ name:         text-to-speech-code-pattern-20210902074058363
  path:         /workspace/f82d9eab-796e-43c6-89cd-79ccd38c9063
  buildpacks:
+   sdk-for-nodejs
+ instances:    1
+ memory:       256M
  services:
+   ttscp-text-to-speech
  routes:
+   text-to-speech-code-pattern-20210902074058363.eu-gb.mybluemix.net

Creating app text-to-speech-code-pattern-20210902074058363...
The app is invalid: Specified unknown buildpack name: "sdk-for-nodejs"
FAILED

Finished: FAILED

我已尝试通过以下方法解决此问题。

1. Have re-created the service instance
2. Have tried to re-create the Delivery Pipeline.

但我仍然遇到同样的错误。有人遇到过这样的问题吗?请提出一些解决方案?

我假设您正在部署到 IBM Cloud 上的 Cloud Foundry。 IBM Cloud Foundry 构建包产品最近发生了变化。

IBM Cloud Foundry provides both an IBM version and an open source version of the Node.js buildpack. To simplify and consolidate around a single Node.js buildpack, IBM is announcing the removal of the IBM version of the Node.js buildpack from the IBM Cloud Foundry service.

您可以在此阅读更多内容 blog。他们仍然支持 nodejs_buildpack buildpack。您可以更改清单文件或覆盖交付管道中的构建包。此外,仍支持自定义构建包。

您可以使用以下命令列出所有支持的构建包:

$ ibmcloud cf buildpacks

Invoking 'cf buildpacks'...

Getting buildpacks...

buildpack                              position   enabled   locked   filename                                             stack
liberty-for-java                       1          true      false    buildpack_liberty-for-java_v3.61-20210826-1015.zip
nodejs_buildpack                       2          true      false    nodejs_buildpack-cflinuxfs3-v1.7.57.zip              cflinuxfs3
noop-buildpack                         3          true      false    noop-buildpack-20140311-1519.zip
xpages_buildpack                       4          true      false    xpages_buildpack_v1.2.2-20170112-1328.zip
staticfile_buildpack                   5          true      false    staticfile_buildpack-cflinuxfs3-v1.5.24.zip          cflinuxfs3
java_buildpack                         6          true      false    java-buildpack-cflinuxfs3-v4.41.zip                  cflinuxfs3
ruby_buildpack                         7          true      false    ruby_buildpack-cflinuxfs3-v1.8.20.zip                cflinuxfs3
go_buildpack                           8          true      false    go_buildpack-cflinuxfs3-v1.9.34.zip                  cflinuxfs3
python_buildpack                       9          true      false    python_buildpack-cflinuxfs3-v1.7.43.zip              cflinuxfs3
php_buildpack                          10         true      false    php_buildpack-cflinuxfs3-v4.4.44.zip                 cflinuxfs3
binary_buildpack                       11         true      false    binary_buildpack-cflinuxfs3-v1.0.39.zip              cflinuxfs3
nginx_buildpack                        12         true      false    nginx_buildpack-cflinuxfs3-v1.1.30.zip               cflinuxfs3
r_buildpack                            13         true      false    r_buildpack-cflinuxfs3-v1.1.20.zip                   cflinuxfs3
dotnet_core_buildpack                  14         true      false    dotnet-core_buildpack-cflinuxfs3-v2.3.32.zip         cflinuxfs3
liberty-for-java_v3_60-20210730-0620   15         true      false    buildpack_liberty-for-java_v3.60-20210730-0620.zip
liberty-for-java_v3_61-20210826-1015   16         true      false    buildpack_liberty-for-java_v3.61-20210826-1015.zip