版本信息
问题当我尝试require('azure');
. 使用 1.2.0-preview 可以正常工作,但我需要使用 2.0。任何指针?
/my_path/node_modules/azure/lib/azure.js:1145
let AzureGraph = require('azure-graph');
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
找到了答案。发布它是为了他人的利益。
https://github.com/Azure/azure-sdk-for-node/issues/2141
基本上,Azure 包需要您使用 Node 6.10.2。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句