I am trying to compile solidity smart contract using npm solc. I tried to follow different examples. Link to example: https://medium.com/coinmonks/how-to-compile-a-solidity-sma
This is generally the assertion error between the solidity compiler that you have installed and the solidity compiler version that you are using in the solidity contract file. If you are using
npm install --save solc@0.4.25
to install solc in your mac then, please use the same version of pragma in your solidity file like the following
pragma solidity^0.4.25