【发布时间】:2018-06-05 17:27:49
【问题描述】:
我正在我的 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 收到同样的错误。
谁能帮帮我?
【问题讨论】:
-
使用最新的框架版本,CLI 二进制文件was renamed to graphcool-framework。 graphcool 现在用于 Graphcool 1.0 CLI 的预览。希望这会有所帮助!
标签: graphcool