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

Strict mode error on Travis with Node.js 4 or 5 #37

Closed
jogold opened this issue Jun 13, 2017 · 1 comment
Closed

Strict mode error on Travis with Node.js 4 or 5 #37

jogold opened this issue Jun 13, 2017 · 1 comment

Comments

@jogold
Copy link
Contributor

jogold commented Jun 13, 2017

Hello,

When running greenkeeper-lockfile-upload on Travis with Node.js 4 or 5, I'm getting a strict mode error. Shouldn't 'use strict' be added to update.js and upload.js?

/home/travis/.nvm/versions/node/v5.12.0/lib/node_modules/greenkeeper-lockfile/upload.js:36
  let remote = `[email protected]:${info.repoSlug}`
  ^^^
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:387:25)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:148:18)
    at node.js:405:3
jogold added a commit to jogold/greenkeeper-lockfile that referenced this issue Jun 13, 2017
@jogold
Copy link
Contributor Author

jogold commented Jun 13, 2017

The error can been seen here also: https://travis-ci.org/greenkeeperio/greenkeeper-lockfile/jobs/242089225

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

1 participant