-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Error: Could not find a compiler version matching 0.5.4. #1711
Comments
Hey @Bowfish, I can't reproduce your error on Truffle v5.0.4. Can you try upgrading and trying again? Let me know if you still have the issue. |
@eggplantzzz I update again to 5.0.4 but still the same:
|
@eggplantzzz If I run |
What do you have in |
Perhaps an easily actionable thing to mitigate this and #1713 is to make three attempts for each HTTP request? |
Can't even get through
Maybe that's the culprit |
Relevant: #1721 |
also having this issue, any workaround @Bowfish |
@eggplantzzz here is my truffle-config.js entry:
@foodaka If I run |
@saturn-network This workaround doesn't solve the original issue. I still have to run I installed truffle like this as a superuser: |
@saturn-network your workaround worked for me |
+1 for @saturn-network's workaround. Do note that it's a temporary solution, the urls should start working again. |
@Bowfish, if you are having to download as root, that means your file permissions are incorrect somewhere. Usually this happens because you ran “sudo npm something” when you should have just run “npm something” The docs should probably be changed to not suggest using sudo and instead just install to the local node_modules directory. Then you can use truffle with More info about the problems with using sudo here: https://givan.se/do-not-sudo-npm and https://www.competa.com/blog/how-to-run-npm-without-sudo/ |
It looks like we have two issues that lead to this error. For some reason my home network can’t connect to solc-bin.ethereum.org and it’s looking like other people are having the same issue. If I tether to my phone, I can download the binary just fine. Switching to GitHub does workaround the issue, but I’m curious what the actual networking problem is. The other issue is truffle being installed as root but running as a non-root user which means it can’t save the binary. |
@wysenynja Thank you very much. I was not aware of this. I installed it accordingly and everything works fine. |
My original issue has been solved with installing nodejs and npm as a normal user and not as a super user. |
Issue
I added this to truffle-config.js:
An I get this error when running truffle complie
Here is the output of truffle complie --list:
Environment
npm --version
):{ damian: '1.0.0',
npm: '6.7.0',
ares: '1.14.0',
cldr: '32.0.1',
http_parser: '2.8.0',
icu: '60.2',
modules: '57',
napi: '3',
nghttp2: '1.33.0',
node: '8.15.0',
openssl: '1.1.0i-fips',
tz: '2017c',
unicode: '10.0',
uv: '1.23.2',
v8: '6.2.414.75',
zlib: '1.2.11'
}
The text was updated successfully, but these errors were encountered: