graphcool:找不到命令(在Mac上本地)

时间:2017-12-23 11:17:36

标签: graphcool

我在我的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收到同样的错误。

任何人都可以帮助我吗?

2 个答案:

答案 0 :(得分:7)

好像他们将二进制名称从graphcool更改为graphcool-frameworkgcf

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');