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

SyntaxError: Unexpected token #19

Closed
UlrichRaab opened this issue Dec 12, 2017 · 4 comments
Closed

SyntaxError: Unexpected token #19

UlrichRaab opened this issue Dec 12, 2017 · 4 comments

Comments

@UlrichRaab
Copy link

UlrichRaab commented Dec 12, 2017

Hello

i wanted to try this lib and installed it using npm install -g daggraph without errors. When i try to create the graph i get the following error:

/usr/local/lib/node_modules/daggraph/node_modules/inquirer/lib/prompts/list.js:32 let index = _.findIndex(this.opt.choices.realChoices, ({ value }) => value === def);

SyntaxError: Unexpected token { 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 Module.require (module.js:367:17) at require (internal/module.js:16:19) at Function.promptModule.restoreDefaultPrompts (/usr/local/lib/node_modules/daggraph/node_modules/inquirer/lib/inquirer.js:55:33) at Object.inquirer.createPromptModule (/usr/local/lib/node_modules/daggraph/node_modules/inquirer/lib/inquirer.js:65:16) at Object.<anonymous> (/usr/local/lib/node_modules/daggraph/node_modules/inquirer/lib/inquirer.js:77:28)

@cesarferreira
Copy link
Collaborator

What node version do you have installed?

@dvdciri
Copy link
Owner

dvdciri commented Dec 12, 2017

@UlrichRaab I believe is because you're using a old version of node, please update that and try again.

@UlrichRaab
Copy link
Author

I have updated node to the latest version and it works. Thank you.

@dvdciri dvdciri closed this as completed Dec 12, 2017
@kotya341
Copy link

witch is the min node version that you support?

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

4 participants