#  Subgraph fails to initialize

**URL:** https://forum.thegraph.com/t/subgraph-fails-to-initialize/3655
**Category:** Questions
**Created:** [October 19, 2022, 7:19pm UTC](https://forum.thegraph.com/t/subgraph-fails-to-initialize/3655 "2022-10-19T19:19:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![maakai](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.thegraph.com/maakai/32/1604_2.png) [@maakai](https://forum.thegraph.com/u/maakai)
#### Post date: [October 19, 2022, 7:19pm UTC](https://forum.thegraph.com/t/subgraph-fails-to-initialize/3655/1 "2022-10-19T19:19:30Z")

</div>

I am trying to use The graph, after successfully installing the graph Cli with, yarn global add @graphprotocol/graph-cli,  
my vscode fails to initialize my subgraph with graph init --studio nft-marketplace

this is what i got as output

```auto
graph : The term 'graph' is not recognized as the name of a cmdlet, function, script file, or operable program.
 Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

```
