```bash
don@don-VirtualBox:~$ npm install -g @graphprotocol/graph-cli
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN notsup Unsupported engine for @graphprotocol/graph-cli@0.46.1: wanted: {"node":">=14"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: @graphprotocol/graph-cli@0.46.1
npm WARN notsup Unsupported engine for glob@9.3.4: wanted: {"node":">=16 || 14 >=14.17"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: glob@9.3.4
npm WARN notsup Unsupported engine for @oclif/core@2.8.0: wanted: {"node":">=14.0.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: @oclif/core@2.8.0
npm WARN notsup Unsupported engine for ipfs-http-client@55.0.0: wanted: {"node":">=14.0.0","npm":">=3.0.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: ipfs-http-client@55.0.0
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/edgeandnode/gluegun.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /home/don/.npm/_logs/2023-04-13T13_43_34_173Z-debug.log
```
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
echo "export NVM_DIR=\"\$HOME/.nvm\"\n[ -s \"\$NVM_DIR/nvm.sh\" ] && \. \"\$NVM_DIR/nvm.sh\" # This loads nvm" >> ~/.bashrc
source ~/.bashrc
source ~/.bashrc
```bash
on@don-VirtualBox:~$ npm install -g @graphprotocol/graph-cli
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -2
npm ERR! enoent An unknown git error occurred
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in: /home/don/.npm/_logs/2023-04-13T16_52_26_071Z-debug-0.log
don@don-VirtualBox:~$
```
```
Command 'graph' not found, but can be installed with:
sudo apt install plotutils
```
```
don@don-VirtualBox:~/Documents/Learning/SubgraphTest$ graph
CLI for building for and deploying to The Graph
VERSION
@graphprotocol/graph-cli/0.46.1 linux-x64 node-v19.9.0
USAGE
$ graph [COMMAND]
COMMANDS
add Adds a new datasource to a subgraph.
auth Sets the deploy key to use when deploying to a Graph node.
build Builds a subgraph and (optionally) uploads it to IPFS.
codegen Generates AssemblyScript types for a subgraph.
create Registers a subgraph name
deploy Deploys a subgraph to a Graph node.
init Creates a new subgraph with basic scaffolding.
local Runs local tests against a Graph Node environment (using Ganache by default).
remove Unregisters a subgraph name
test Runs rust binary for subgraph testing.
```
INDEXING ERROR
Error: failed to process trigger: block #12292922 (0xe2d5…4293), transaction cfb197f62ec5c7f0e71a11ec0c4a0e394a3aa41db5386e85526f86c84b3f2796: Entity Ape[0]: missing value for non-nullable field `apeID` wasm backtrace: 0: 0x2ef9 - <unknown>!src/bored-ape-yacht-club/handleTransfer
To view more details about this indexing error, please view the documentation.