Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected strict mode reserved word on init #3

Closed
TrustNik opened this issue Nov 25, 2015 · 2 comments
Closed

Unexpected strict mode reserved word on init #3

TrustNik opened this issue Nov 25, 2015 · 2 comments

Comments

@TrustNik
Copy link

Hi
I've done sudo npm install -g codeceptjs, now when I am doing codeceptjs init in my project's root folder I get:

/usr/local/lib/node_modules/codeceptjs/lib/config.js:2
let fs = require('fs');
^^^
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 Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/codeceptjs/bin/codecept.js:6:14)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)

Some env info

$ npm -v
3.3.12
$ node -v
v0.12.0
@DavertMik
Copy link
Contributor

Please update NodeJS to current LTS 4.2.0
Then it should work. From my side I will need to update requirements

@TrustNik
Copy link
Author

@DavertMik yep, putting requirements somewhere in the readme would be helpful. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants