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.
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@example.com