I was trying with a simple contract,when I do "node compile.js" in my windows cmd it throws an error.I was using vscode it showing error in const solc = require('solc'),I installed everything perfectly but I don't know why the error occurs.
Had the same issue .
- npm uninstall solc
- npm install --save [email protected]
At the moment, Solidity version 0.4.17 is what im using. If you are getting this error, then you might likely have installed an unsupported version of solc.
You will need to do the following within the root of your project directory:
npm uninstall solc
rm -r node_modules
npm install [email protected]