Quick article on how to add auto completion in Webstorm 11 for all the core Node libraries.
The problem
Without Node coding assistance, you will get warnings on all the Node.js core functions like require
or __dirname
.
The solution
In webstorm 11 you need to enable the Node.js assistance:
Got to Preferences > Languages & Frameworks > Node.js and npm and click Enable under Code Assistance.
Go back to your code and the errors will be gone !