Power Bi开发人员工具安装 - 语法错误(Power Bi Developer Tools Install - Syntax Error)

安装Power Bi开发人员工具时,我收到以下错误:

let exec = require('child_process').execSync; ^^^ SyntaxError: Unexpected strict mode reserved word at exports.runInThisContext (vm.js:73:16) at Module._compile (module.js:443:25) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Function.Module.runMain (module.js:501:10) at startup (node.js:129:16) at node.js:814:3

我收到错误消息的时间我正在运行NodeJS V4.4.7,但我也尝试过版本V5.5.0和最新版本。 我们让它在另一台机器上运行,但似乎无法运行我的工具。 我作为管理员运行。

我关注的设置步骤来自Power BI, 这里

When installing Power Bi developer tool I get the following error:

let exec = require('child_process').execSync; ^^^ SyntaxError: Unexpected strict mode reserved word at exports.runInThisContext (vm.js:73:16) at Module._compile (module.js:443:25) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Function.Module.runMain (module.js:501:10) at startup (node.js:129:16) at node.js:814:3

The time that error message is taken I'm running NodeJS V4.4.7, but I have also tried with versions V5.5.0 and the latest version also. We have it working on another machine but can't seem to run the tool on mine. I am running as Admin.

The setup steps I'm following are from Power BI, here

最满意答案

您是否已使用node -v确认节点版本?

我刚安装了powerbi-visuals-tools 。 节点版本是v0.12.x,我得到了与你完全相同的错误。

将节点升级到v6.9.4后,问题就解决了。 请确保使用与以前相同的方法更新节点 。

Have you confirmed the node version with node -v?

I have just installed powerbi-visuals-tools. The node version is v0.12.x and I got the exact same error as yours.

After upgrading node to v6.9.4, the issue is solved. Please make sure you update node using the same method as before.

更多推荐