Error when initializing subgraph using Graph Protocol

Hey guys. I have been following Patrick’s 32 hour course. In Lesson 15 whereby when we need to initialize the subgraph using Graph Indexing Protocol, I keep getting the error below. My npm version is 9.1.2, yarn version is 3.2.3, node version is 18.12.1, and graph version is 0.36.1. Appreciate the help!!

 Generate subgraph
  Write subgraph to directory
√ Create subgraph scaffold
√ Initialize networks config
√ Initialize subgraph repository
× Failed to install dependencies: Command failed: yarn

C:\Users\User\AppData\Roaming\nvm\v14.17.0\node_modules\@graphprotocol\graph-cli\node_modules\gluegun\build\index.js:13
    throw up;
    ^

Error: Command failed: yarn

    at ChildProcess.exithandler (child_process.js:319:12)
    at ChildProcess.emit (events.js:376:20)
    at maybeClose (internal/child_process.js:1055:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) {
  killed: false,
  code: 1,
  signal: null,
  cmd: 'yarn',
  stderr: ''
}

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.