[英]vsphere-connect javascript library error while client login
I am trying to execute the example provided in the link here 我正在尝试执行此处链接中提供的示例
However I get the below error while executing the code: 但是在执行代码时出现以下错误:
connect.createClient({
^
TypeError: connect.createClient is not a function
at Object.<anonymous> (/home/stack/nodejs/vmware.js:4:9)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
What am I doing wrong? 我究竟做错了什么?
There was an issue with the library with latest version of VMWare VCenter. 最新版本的VMWare VCenter的库存在问题。 Used the latest version of the library 2.0.0-alpha and example code from here http://bhoriuchi.github.io/vsphere-connect/#/api/client.method 使用了最新版本的库2.0.0-alpha和示例代码, 网址为http://bhoriuchi.github.io/vsphere-connect/#/api/client.method
It worked fine. 工作正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.