【发布时间】:2017-04-19 14:35:50
【问题描述】:
版本信息
- Node.js:v4.6.0
- Azure: 2.0.0-preview
- MacOS Sierra(10.12.4 测试版)
问题
当我尝试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)
【问题讨论】:
标签: node.js azure azureservicebus