Ganache-Cli – How to Fix ‘Ganache-Cli Command Not Found’ Error

ganache-cli

I tried installing ganache-cli with yarn. Even though yarn has successfully installed ganache-cli, I bash can't find the ganache-cli.

smakbar@OMEN:~/cryptoCurrencies/web3$ yarn global add ganache-cli
yarn global v1.22.17
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

success Installed "[email protected]" with binaries:
      - ganache-cli
Done in 1.66s.
smakbar@OMEN:~/cryptoCurrencies/web3$ ganache-cli
ganache-cli: command not found

Best Answer

I was facing same problem it is solved by

npm install -g ganache-cli
Related Topic