为什么 truffe 迁移命令不起作用?为我

问题描述

Could not connect to your Ethereum client with the following parameters: - host > 127.0.0.1 - port > 7545 - network_id > * Please check that your Ethereum client: - is running - is accepting RPC connections (i.e.,"--rpc" option is used in geth) - is accessible over the network - is properly configured in your Truffle configuration file (truffle-config.js)

Truffle v5.3.9(核心:5.3.9)节点 v16.3.0

来自此视频https://youtu.be/XLahq4qyors?t=1385

是的,我的 ganache 被打开了,我的 truffle-config.json 配置正确,端口正确,并且都尝试了这项工作的其他解决方案,但不幸的是它没有工作

我的配置

require('babel-polyfill');

  networks: {
    development: {
      host: "127.0.0.1",port: 7545,network_id: "*" // Match any network id
    },},contracts_directory: './src/contracts/',contracts_build_directory: './src/abis/',compilers: {
    solc: {
      optimizer: {
        enabled: true,runs: 200
      },evmVersion: "petersburg"
    }
  }
}```

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...