Giter Club home page Giter Club logo

Comments (6)

martijnwalraven avatar martijnwalraven commented on May 18, 2024

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.

from apollo-ios.

IvanovDeveloper avatar IvanovDeveloper commented on May 18, 2024

npm apollo-codegen --version
2.14.3

from apollo-ios.

IvanovDeveloper avatar IvanovDeveloper commented on May 18, 2024

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

from apollo-ios.

martijnwalraven avatar martijnwalraven commented on May 18, 2024

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!

from apollo-ios.

IvanovDeveloper avatar IvanovDeveloper commented on May 18, 2024

Thanks!

from apollo-ios.

IvanovDeveloper avatar IvanovDeveloper commented on May 18, 2024

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

from apollo-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.