How to compile a Solidity Smart Contract with solc-js

You can easily install solc-js from npm official package repository: It will install solc-js under /usr/local/bin/solcjs -> ../lib/node_modules/solc/solc.js Basic syntax to compile a smart contract written in Solidity: If you use external contracts, imports or OpenZeppelin: