我在我的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 init server
-bash: graphcool: command not found
我从graphcool init
收到同样的错误。
任何人都可以帮助我吗?
答案 0 :(得分:7)
好像他们将二进制名称从graphcool
更改为graphcool-framework
和gcf
https://github.com/graphcool/framework/commit/5de2334440c55f6a42f6d75ad1b06a8d320d5e40
尝试:
graphcool-framework init
如果您收到错误消息"没有此类文件或目录,请执行
; / ./coco'"touch ~/.graphcool
然后重新键入上面的init命令
答案 1 :(得分:0)
我设置graphcool的顺序是:
app.data.case = app.getArgument('case');
app.data.metric = app.getArgument('metric');
app.data.item = app.getArgument('item');
app.data.date-period = app.getArgument('date-period');