【问题标题】:Command not found - installing ganache-cli with yarn on Visual Studio找不到命令 - 在 Visual Studio 上使用 yarn 安装 ganache-cli
【发布时间】:2022-01-05 21:20:46
【问题描述】:

我已经在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 !

【问题讨论】:

    标签: python visual-studio installation terminal ganache


    【解决方案1】:

    我今天早些时候遇到了同样的问题,通过在我的 Visual Studio 终端中输入此命令解决了它

    npm install -g ganache-cli

    (注意:你必须已经安装了 Nodejs) 安装后只需运行以下命令

    ganache-cli --version 检查是否安装正确

    【讨论】:

      猜你喜欢
      • 2021-12-23
      • 2022-01-12
      • 2017-12-14
      • 2022-01-05
      • 2022-01-02
      • 2020-02-14
      • 2021-05-01
      • 2022-01-19
      • 2019-08-02
      相关资源
      最近更新 更多