Here are some clues, how to use node.js and bower in the jIDEA IDE. I need to use it for managing packages in a project for my bachelor thesis. There I use the set up to manage libraries like angularjs, bootstrap and lawnchair.
Nodejs installlation and plugin support in jIDEA
First of all, install node.js – the installer files are provided from their homepage. After that, open jIDEA and go to the settings (IDE Settings -> Plugins) and make sure that “NodeJS” is installed – if not, install it from here:
In my case (Mac OS 10.9.2), node.js was installed to /user/local/bin. Install bower globally by running the following in command line:
/user/local/bin/npm install -g bower
You will maybe require admin/sudo rights to run this command! The output in the command line will show, if the installation was successful.
Use bower package manager in a project
Assuming you already added the project in jIDEA, use the command line and cd the project directory. Simply run
Add packages with bower
Since bower is set up for the project, you can easily add packages. From the projects settings you may click the plus, to add a package. After clicking the plus, another window will open showing all the available packages. A great benefit is also the dependency management – if you install a package which depends on another package – the dependency will be installed automatically.