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

Fails on Node 4 #49

Closed
pvdlg opened this issue Aug 11, 2017 · 0 comments
Closed

Fails on Node 4 #49

pvdlg opened this issue Aug 11, 2017 · 0 comments

Comments

@pvdlg
Copy link
Contributor

pvdlg commented Aug 11, 2017

I have a package-lock.json but no npm-shrinkwrap.json nor yarn.lock.
On Node 4 it fails with the following error:

/home/travis/.nvm/versions/node/v4.8.4/lib/node_modules/greenkeeper-lockfile/lib/update-lockfile.js:39
      const flag = flags[dependency.type]
      ^
SyntaxError: Identifier 'flag' has already been declared
    at updateLockfile (/home/travis/.nvm/versions/node/v4.8.4/lib/node_modules/greenkeeper-lockfile/lib/update-lockfile.js:23:42)
    at Module.update [as exports] (/home/travis/.nvm/versions/node/v4.8.4/lib/node_modules/greenkeeper-lockfile/update.js:60:3)
    at Object.<anonymous> (/home/travis/.nvm/versions/node/v4.8.4/lib/node_modules/greenkeeper-lockfile/update.js:68:37)
    at Module._compile (module.js:409:26)
    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 Function.Module.runMain (module.js:441:10)
    at startup (node.js:140:18)
    at node.js:1043:3

Here is an example: https://travis-ci.org/vanduynslagerp/karma-rollup-preprocessor/jobs/263515447

It works fine on Node 6 and up (I didn't test for Node 5).

pvdlg added a commit to pvdlg/greenkeeper-lockfile that referenced this issue Aug 12, 2017
Fix error: SyntaxError: Identifier 'flag' has already been declared

Fixes greenkeeperio#49
rmehner pushed a commit that referenced this issue Aug 16, 2017
Fix error: SyntaxError: Identifier 'flag' has already been declared

Fixes #49
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