This is the message i get:
truffle migrate --netowrk goerli
Compiling your contracts…
Compiling .\contracts\Migrations.sol
Compiling .\contracts\SmartGrid.sol
Artifacts written to C:\Users\asafy\ExjobbFinal\build\contracts
Compiled successfully using:
solc: 0.8.11+commit.d7f03943.Emscripten.clang
Something went wrong while attempting to connect to the network at http://127.0.0.1:8545. Check your network configuration.
CONNECTION ERROR: Couldn’t connect to node http://127.0.0.1:8545.
Truffle v5.8.3 (core: 5.8.3)
Node v18.15.0
@Flaveeu When i try the command truffle deploy i get this following error:
truffle deploy
Compiling your contracts…
Compiling .\contracts\Migrations.sol
Compiling .\contracts\SmartGrid.sol
Artifacts written to C:\Users\X\build\contracts
Compiled successfully using:
solc: 0.8.11+commit.d7f03943.Emscripten.clang
Something went wrong while attempting to connect to the network at http://127.0.0.1:8545. Check your network configuration.
CONNECTION ERROR: Couldn’t connect to node http://127.0.0.1:8545.
Truffle v5.8.3 (core: 5.8.3)
Node v18.15.0
This is my network config in turffle-config.js:
networks: {
// Useful for testing. The development name is special - truffle uses it by default
// if it’s defined here and no other network is specified at the command line.
// You should run a client (like ganache, geth, or parity) in a separate terminal
// tab if you use this network and you must also set the host, port and network_id
// options below to some value.
//
development: {
host: “127.0.0.1”, // Localhost (default: none)
port: 8545, // Standard Ethereum port (default: none)
network_id: “*”, // Any network (default: none)
},