0
- 的Node.js:v4.6.0
- Azure:2.0.0预览
- MacOS的塞拉利昂(10.12 0.4测试版)
问题 我收到以下错误,当我尝试require('azure');
。按预期使用1.2.0预览工作,但我需要使用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)
请接受您自己的答案,以便其他人可以从中受益。谢谢 –