lesson15: Subgraph fails to initialize #2651
-
I am trying to use The graph, after successfully installing the graph Cli with, yarn global add @graphprotocol/graph-cli, this is what i got as output
|
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Sep 18, 2022
Replies: 2 comments 1 reply
-
@Maakai123 The graph dependency is not installed correctly globally. Try either a npm command or install it in a local project, it will work. NPM Command npm i -g @graphprotocol/graph-cli or sudo npm i -g @graphprotocol/graph-cli Install locally npm i --save-dev @graphprotocol/graph-cli or yarn add --dev @graphprotocol/graph-cli |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
alymurtazamemon
-
Thanks it worked for me
…On Sun, Sep 18, 2022 at 9:08 AM Ali Murtaza ***@***.***> wrote:
@Maakai123 <https://github.com/Maakai123> The graph dependency is not
installed correctly globally. Try either a npm command or install it in a
local project, it will work.
*NPM Command*
npm i -g @graphprotocol/graph-cli
or
sudo npm i -g @graphprotocol/graph-cli
*Install locally*
npm i --save-dev @graphprotocol/graph-cli
or
yarn add --dev @graphprotocol/graph-cli
—
Reply to this email directly, view it on GitHub
<#2651 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AY7DUNNIMC2JP6G24JMGNILV63EWJANCNFSM6AAAAAAQPGEEWY>
.
You are receiving this because you were mentioned.Message ID:
<smartcontractkit/full-blockchain-solidity-course-js/repo-discussions/2651/comments/3673298
@github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Maakai123 The graph dependency is not installed correctly globally. Try either a npm command or install it in a local project, it will work.
NPM Command
or
Install locally
or