我正在使用 Node-RED 并希望在 Bluemix 中进行解析,VCAP_SERVICES
但出现错误。我的代码是:
var services = context.global.VCAP_SERVICES;
var env_cloudint = services['CloudIntegration'][0].credentials;
但我收到此错误:
TypeError: Cannot read property 'CloudIntegration' of undefined
我的VCAP_SERVICES
. 我的代码中是否需要任何额外的东西来利用VCAP_SERVICES
?