Skip to content

lesson15: Subgraph fails to initialize #2651

Answered by alymurtazamemon
Maakai123 asked this question in Q&A
Discussion options

You must be logged in to vote

@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

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@EightMilesZhangjx
Comment options

Answer selected by alymurtazamemon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants