WebStorm says console is an unresolved variable
Solution for webstorm for NodeJS as of January 2017
Preferences -> Languages and Frameworks -> JavaScript -> Libraries -> Download -> TypeScript Community Stubs -> node -> Download and Install
This will remove the unresolved import console warning
For me worked to change Javascript Language Version to ECMAScript 6 in
File > Settings > Languages & Frameworks > Javascript
PhpStorm v.2017.2
For version 8 and up the solution is to enable NodeJS Globals
library:
Settings > Javascript > Libraries
the solution for WebStorm 6.* is to enable 'HTML' library in Settings/javascript/Libraries (same for WebStorm 7.0.1)