Solution for (Failed to install solc 0.8.20) #85
jyotirmoydotdev
started this conversation in
Ideas
Replies: 1 comment
-
Thank you for this! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just want to let you know that if you are facing an error while running
forge create
command for your smart contract project, there is a solution for you! The error message might look something like this:solution
First, install solidity with the following command:
Once you have installed solidity, copy the installed directory address which you get with the command
brew info solidity
. You only need the path up to the bin directory. For example:Next, navigate to the main directory of your project and open the
foundry.toml
file. This file contains configuration details for your project. Add the following line to the file:Replace
<path-to-solc>
with the bin directory path you copied earlier. For example:The full code should look like this.
Save the file and exit. Now try running the
forge create
command again. It should run without any errors.By following these steps, you should be able to successfully resolve the
solc
installation error and create your smart contract project with ease. Good luck coding!Beta Was this translation helpful? Give feedback.
All reactions