意思是它不将 ganache-cli 识别为命令,尽管按照指示安装了它和其他所有内容。
使用:
- 布朗尼 v1.17.2
- 节点 v17.2.0 (npm v8.1.4)
- 非虚拟机 0.39.0
- 蟒蛇 3.9.7
- Ganache CLI v6.12.2 (ganache-core: 2.13.2)
作为这里Solidity 课程的一部分,特别是第 5 课。这里是 Github repo 。
x@y brownie_simple_storage % brownie run scripts/deploy.py
Brownie v1.17.2 - Python development framework for Ethereum
BrownieSimpleStorageProject is the active project.
Launching 'ganache-cli --port 8545 --gasLimit 12000000 --accounts 10 --hardfork istanbul --mnemonic brownie'...
File "brownie/_cli/__main__.py", line 64, in main
importlib.import_module(f"brownie._cli.{cmd}").main()
File "brownie/_cli/run.py", line 44, in main
network.connect(CONFIG.argv["network"])
File "brownie/network/main.py", line 50, in connect
rpc.launch(active["cmd"], **active["cmd_settings"])
File "brownie/network/rpc/__init__.py", line 93, in launch
raise RPCProcessError(cmd, uri)
RPCProcessError: Unable to launch local RPC client.
Command: ganache-cli
URI: http://127.0.0.1:8545