[英]Command not found - installing ganache-cli with yarn on Visual Studio
我已经在 Visual Studio 版本的终端中安装了 nodeJS:
v16.13.1
纱
1.22.17
Ganache-cli
MacBook:web3_py_simple_storage myName$ yarn global add ganache-cli
warning ../package.json: No license field
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
success Installed "ganache-cli@6.12.2" with binaries:
- ganache-cli
✨ Done in 1.10s.```
BUT when I try to do `ganache-cli --version`, I always received the same msg `bash: ganache-cli: command not found`... I maybe think it's a path problem but I tried a lot and a lot of solution and still nothing..
I really thanks a lot in advance the guy who will help me !
我今天早些时候遇到了同样的问题,通过在我的 Visual Studio 终端中输入此命令解决了它
npm install -g ganache-cli
(注意:您必须已经安装了 Nodejs)安装后只需运行以下命令
ganache-cli --version检查是否安装正确
我使用npm install -g ganache并解决了我的问题,但是当我想启动 Ganache-cli 时,使用 npx ganache-cli运行
您可能必须将其添加到路径
C:\Users\userName\AppData\Local\Yarn\bin
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.