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

Apollo integration issue #44

Closed
IvanovDeveloper opened this issue Jan 27, 2017 · 6 comments
Closed

Apollo integration issue #44

IvanovDeveloper opened this issue Jan 27, 2017 · 6 comments

Comments

@IvanovDeveloper
Copy link

IvanovDeveloper commented Jan 27, 2017

The version of Apollo.framework in your project requires the use of version 0.9 of apollo-codegen, but an unknown older version seems to be installed.

Why it is happened? What I should for resolve this issue?

@martijnwalraven
Copy link
Contributor

What version of apollo-codegen do you have installed? What does apollo-codegen --version return?

You may want to try reinstalling it with npm install -g apollo-codegen.

@IvanovDeveloper
Copy link
Author

npm apollo-codegen --version
2.14.3

@IvanovDeveloper
Copy link
Author

apollo-codegen --version

/usr/local/lib/node_modules/apollo-codegen/lib/cli.js:33
_process2.default.on('unhandledRejection', error => {
^^
SyntaxError: Unexpected token =>
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 Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3

@martijnwalraven
Copy link
Contributor

It seems you're running an older version of Node, and apollo-codegen requires a minimum of Node 4.

I'll make sure to list this in the package.json so you would have gotten a more meaningful error message at installation time. Thanks for reporting this!

@IvanovDeveloper
Copy link
Author

Thanks!

@IvanovDeveloper
Copy link
Author

IvanovDeveloper commented Jan 27, 2017

also, could you please check this issue
https://github.com/apollostack/ios-docs/issues/4

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