Skip to content

Instantly share code, notes, and snippets.

@sebastianbachmann
Last active October 21, 2017 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastianbachmann/73a55003f0b1510997307cd1f86f2143 to your computer and use it in GitHub Desktop.
Save sebastianbachmann/73a55003f0b1510997307cd1f86f2143 to your computer and use it in GitHub Desktop.
$ which node
/usr/local/bin/node
$ node -v # installed from https://nodejs.org/dist/v8.7.0/node-v8.7.0.pkg
v8.7.0
$ which npm
/usr/local/bin/npm
$ npm -v
5.4.2
$ apollo-codegen --version
0.17.0
## NEW Error Message
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/node
Can't find apollo-codegen. Installing...
/Users/sebastian/.node/bin/apollo-codegen -> /Users/sebastian/.node/lib/node_modules/apollo-codegen/lib/cli.js
+ apollo-codegen@0.17.0
updated 1 package in 3.341s
/Users/sebastian/Code/Feerd/Carthage/Build/iOS/Apollo.framework/check-and-run-apollo-codegen.sh: line 24: apollo-codegen: command not found
The version of Apollo.framework in your project requires apollo-codegen 0.17, but an unknown older version seems to be installed. Installing...
/Users/sebastian/.node/bin/apollo-codegen -> /Users/sebastian/.node/lib/node_modules/apollo-codegen/lib/cli.js
+ apollo-codegen@0.17.0
updated 1 package in 1.744s
++ exec apollo-codegen generate '**/*.graphql' --schema schema.json --output API.swift
/Users/sebastian/Code/Feerd/Carthage/Build/iOS/Apollo.framework/check-and-run-apollo-codegen.sh: line 67: exec: apollo-codegen: not found
Command /bin/sh failed with exit code 127
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment