Why the command graphcool is not found after doing...
# prisma-whats-new
e
Why the command graphcool is not found after doing an "npm install graphcool -g"? I'm running "graphcool playground" without success.
j
If you're on Windows, you'll need to restart CMD, as graphcool won't be in your path yet.
e
Nevertheless, I can't find a "graphcool" executable in npm directory. Instead, I can see "gcf", "graphcool-framework" and "graphql" commands.
j
Let me double check on that
So the source of the cli is actually
path_to_global/node_modules/graphcool/dist/index.js
Whether or not that gets copied to somewhere else I'm not sure (on Linux it does)
h
not true, you don't have to restart CMD
also you have to install
graphcool@beta
j
Ah, right. If you want the 0.x release, you'd need to install
graphcool-cli
Oops, sorry,
graphcool-framework
- see https://github.com/graphcool/graphcool/releases/tag/0.11.4 for more info on that
e
And how would you open the playground with 1.0?
I ended up installing the standalone version because I was not able to open it using the command line.
h
have you installed
graphcool@beta
?
j
Once you
npm install graphcool@beta
, you need to run
npm start
, then should be able to
graphcool playground
, or at worst just go to the endpoint of your API
Maybe you haven't done the
npm start
piece? That will serve the playground along with the application API as long as your
NODE_ENV
is
dev
or
development
(which is the default in
.env
)
e
Thanks, I forgot to install the beta version. Now it works as expected.