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 because of version mismatch of solidity compiler installed during solc package installation and the compiler mentioned in the solidity file.To solve this issue try