Power Bi开发人员工具安装 - 语法错误

时间:2017-01-26 11:35:49

标签: node.js install powerbi

安装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,here

1 个答案:

答案 0 :(得分:1)

您是否已使用if left({FG10.ITEM_NUMB},1) in MakeArray("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z") then true; 确认节点版本?

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

将节点升级到v6.9.4后,问题就解决了。请确保update node using the same method as before