我在Visual版本的终端中安装了nodeJS:
v16.13.1
纱线
1.22.17
加纳奇
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 !发布于 2022-01-17 11:22:46
今天早些时候,我遇到了同样的问题,通过在visual studio终端中键入这个命令解决了这个问题。
npm安装-g ganache-cli
(注意:安装后必须已经安装了Nodejs ),只需运行以下命令
ganache-cli -版本,以检查其安装是否正确。
发布于 2022-09-04 13:13:24
我使用了npm install -g ganache,它解决了我的问题,但是当我想要启动Ganache时,使用npx ganache-cli运行。
发布于 2022-12-02 21:56:07
您可能需要将其添加到路径中。
C:\Users\userName\AppData\Local\Yarn\binhttps://stackoverflow.com/questions/70599723
复制相似问题