我正在我的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得到了同样的错误。
有谁可以帮我?
发布于 2017-12-24 01:19:42
似乎他们把二进制名从graphcool改成了graphcool-framework和gcf
https://github.com/graphcool/framework/commit/5de2334440c55f6a42f6d75ad1b06a8d320d5e40
尝试:
graphcool-framework init如果你得到一个错误提示:“没有这样的文件或目录,lstat‘~/.graph such’”,那么
touch ~/.graphcool然后重新键入上面的init命令
发布于 2018-01-03 00:42:26
我设置graphcool的顺序是:
npm install -g graphcool-framework
mkdir ~/.graphcool
cd .graphcool
touch config.yml
graphcool-framework init serverhttps://stackoverflow.com/questions/47952012
复制相似问题