我在我的Mac上本地安装graphcool,我认为已经好了:
$ sudo npm install -g graphcool
npm WARN deprecated jsonstream@1.0.3: use JSONStream instead
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
/usr/local/bin/graphcool-framework -> /usr/local/lib/node_modules/graphcool/dist/index.js
/usr/local/bin/gcf -> /usr/local/lib/node_modules/graphcool/dist/index.js
+ graphcool@0.11.4
updated 1 package in 7.251s
但似乎没有认识到graphcool:
$ graphcool init server
-bash: graphcool: command not found
我得到了同样的错误graphcool init.
谁能帮我?
好像他们将二进制名称更改graphcool为graphcool-framework和gcf
https://github.com/graphcool/framework/commit/5de2334440c55f6a42f6d75ad1b06a8d320d5e40
尝试:
graphcool-framework init
如果你收到一个错误,说"没有这样的文件或目录,lstat'〜/ .graphcool'",请执行
touch ~/.graphcool
然后重新键入上面的init命令