SyntaxError: Use of const in strict mode?

前端 未结 6 1596
礼貌的吻别
礼貌的吻别 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:20

    Updating nodejs solved the issue:

    npm cache clean -f
    sudo npm install -g n
    sudo n stable
    node --version
    node app.js
    

    You have to run the second and third command as root/administrator.

提交回复
热议问题