SyntaxError: Use of const in strict mode?

前端 未结 6 1597
礼貌的吻别
礼貌的吻别 2020-11-29 04:00

I am trying to login on facebook.com with selenium-webdriver.

var webdriver = require(\'selenium-webdriver\'),
    By = require(\'selenium-webdriver\').By,
          


        
6条回答
  •  无人及你
    2020-11-29 04:18

    n stable wouldn't do the trick for me. On the other hand,

    nvm install stable
    

    That actually got me to last nodejs version. Apparently n stable won't get pass v0.12.14 for me. I really don't know why.

    Note: nvm is Node Version Manager, you can install it from its github page. Thanks @isaiah for noting that nvm is not a known command.

提交回复
热议问题