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 ) #6

Closed
darrenjennings opened this issue Sep 19, 2017 · 2 comments
Closed

SyntaxError: Unexpected token ) #6

darrenjennings opened this issue Sep 19, 2017 · 2 comments

Comments

@darrenjennings
Copy link

darrenjennings commented Sep 19, 2017

I just installed the tool and when I ran the command for the first time:

% yo kcd-oss
/usr/local/lib/node_modules/generator-kcd-oss/generators/app/index.js:33
      )
      ^
SyntaxError: Unexpected token )
    at createScript (vm.js:53:10)
    at Object.runInThisContext (vm.js:95:10)
    at Module._compile (module.js:543:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.get [as kcd-oss:app] (/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/lib/store.js:38:27)

this.fs.copyTpl(
[`${this.templatePath()}/**`],
this.destinationPath(),
props,
)

Node version: v7.10.1
Npm version: 4.2.0

@theianjones
Copy link

Hey @darrenjennings,

I just ran into this issue. It is because kcd-scripts requires you to use Node >= 8. I was on v7.4 and upgraded to v8.7 and the issue was resolved.

Hope this helps!

Cheers

@kentcdodds
Copy link
Owner

Actually, I realized that this is a different issue @ijones16. Same error message, but different issue.

I'm not going to fix the one here because this repository is for me and I don't officially care to support other use cases. I'll always have node v8 when running this.

So you can install node@8 and use that to use this package. Good luck! 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

3 participants