I'm facing an error while running truffle compile-
Error: Failed to fetch the Solidity compiler from the following locations: https://relay.trufflesuite.com/solc/bin/,https://solc-bin.ethereum.org/bin/,https://ethereum.github.io/solc-bin/bin/. Are you connected to the internet?
Here is my truffle-config.js
-
require("babel-register");
require("babel-polyfill");
module.exports = {
networks: {
development: {
host: "HTTP://127.0.0.1:",
port: "7545",
networkd_id: "*", //match any network
},
},
contracts_directory: "./src/contracts/",
contracts_build_directory: "./src/truffle_abis",
compilers: {
solc: {
version: "^0.5.0",
optimizer: {
enabled: true,
runs: 200,
},
},
},
};