Friday, 28 April 2017

Installation problems with CodeceptJS

I was settings up a new system to use CodeceptJS and have hit an issue. I followed the notes on http://codecept.io/installation/#global but just get an error when trying to run codeceptjs. The error is...

codeceptjs
/usr/local/lib/node_modules/codeceptjs-webdriverio/node_modules/codeceptjs/lib/mocha_factory.js:6
let mocha;
^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/codeceptjs-webdriverio/node_modules/codeceptjs/lib/container.js:5:20)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)

My node.js and npm is installed globally via normal apt-get and npm -g

System info...

  • Ubuntu 17.04 x86_64
  • nodejs: 4.7.2
  • npm: 4.5.0
  • bash 4.4.5

Does anyone know the cause of this issue or how to get around it?



via AndyGaskell

No comments:

Post a Comment