blockchainganache

error in ganache installation: The term 'ganache-cli' is not recognized as the name of a cmdlet, function, script file, or operable program


I installed ganache with yarn, but when I check the version to see if correctly installed, I get the error: "The term 'ganache-cli' is not recognized as the name of a cmdlet, function, script file, or operable program". enter image description here


Solution

  • I had the same issue but then I installed with npm and it worked

    npm install -g ganache-cli