For some reason WebStorm says that the global console
variable in javascript is unresolved. How can I resolve this?
I am using Node.js
I was only able to resolve this by deleting the Webstorm preferences folder and re-installing Webstorm.
For version 8 and up the solution is to enable NodeJS Globals
library:
Settings > Javascript > Libraries
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
the solution for WebStorm 6.* is to enable 'HTML' library in Settings/javascript/Libraries (same for WebStorm 7.0.1)
For me worked to change Javascript Language Version to ECMAScript 6 in
File > Settings > Languages & Frameworks > Javascript
PhpStorm v.2017.2