So I was following an Ethereum development course but got stuck into this error while compiling my compile.js file. I have tried this solution also of ReInstalling solidity