Just download the plugin from the makers of IDEA to use it.
To use 3rd party node.js libraries I have found these 2 ways:
- In the terminal use npm to install the library.
 - Use the IDEA GUI and do:
 
- File -> Settings -> Languages & Frameworks -> Node.js and NPM
 - Click the green + on the right side
 - Choose the library 'package'
 - Install Package