Open In App
Related Articles

How to install Solidity on macOS?

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

Solidity is a programming language used for writing smart contracts for many platforms of blockchain, the most common of which is ethereum. It is an object-based programming language that runs on EVM (Ethereum Virtual Machine) which executes the smart contracts. Below are the steps to install solidity in macOS –

1. Installing through npm command in the terminal:

Step 1: You must have npm installed in your system. If not then use the following command to install npm before proceeding further:

brew install node 

Step 2: Now use the following command to install solidity:

npm install -g solc
Command to install solidity

2. Installing through brew command in the terminal:

Step 1: You must have npm installed in your system. If not then use install it as in Method 1- Step 1.

Step 2: Now use the following command to tap ethereum before installing solidity (required):

brew tap ethereum/ethereum
Tap Ethereum

Step 3: After cloning ethereum objects using the above command, now use the following command to install solidity:

brew install solidity                                
Command to install solidity

Working With Solidity

Solidity is most commonly used on the online IDE http://remix.ethereum.org/  where one can write and compile smart contract codes. Ganache is used for deploying and setting up a personal Ethereum Blockchain for working with your contracts. It can be used as the web3 provider. You can also link other features like metamask.


Last Updated : 11 May, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads