客户端登录时 vsphere-connect javascript 库错误
vsphere-connect javascript library error while client login
我正在尝试执行 link here
中提供的示例
但是我在执行代码时遇到以下错误:
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
我做错了什么?
最新版本的 VMWare VCenter 库存在问题。使用最新版本的库 2.0.0-alpha 和此处的示例代码 http://bhoriuchi.github.io/vsphere-connect/#/api/client.method
它运行良好。
我正在尝试执行 link here
中提供的示例但是我在执行代码时遇到以下错误:
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
我做错了什么?
最新版本的 VMWare VCenter 库存在问题。使用最新版本的库 2.0.0-alpha 和此处的示例代码 http://bhoriuchi.github.io/vsphere-connect/#/api/client.method
它运行良好。