IntelliJ IDEA 13.1.0 Web Help

Bower packages can be installed and used only in a specific project. On this page:

Installing a Bower package in a project

Installing a Bower package in a specific project restricts its use to this project. To run project installation, do one of the following:

  • In the command line mode, switch to the project root folder and type the following command at the command line prompt:
    bower install  <tool name>
                
  • Run Bower from IntelliJ IDEA using the Bower page of the Settings dialog box.
    1. Open the project settings and then click Bower.
    2. On the Bower page that opens, the Packages area shows all the Bower-dependent packages that are currently installed on your computer, both at the global and at the project level. Click add.
    3. In the Available Packages dialog box that opens, select the package.
    4. Optionally specify the product version and click Install Package to start installation.
Installing a Bower package as a development dependency

If a Bower package is a documentation or a test framework, which are of no need for those who are going to re-use your application, it is helpful to have it excluded from download for the future. This is done by marking the tool as a development dependency, which actually means adding the Bower package in the devDependencies section of the package.json file.

With IntelliJ IDEA, you can have a Bower package marked as a development dependency right during installation. Do one of the following:

  • In the command line mode, switch to the project root folder and type the following command at the command line prompt:
    bower install --dev  <tool name>
                
  • Run NPM from IntelliJ IDEA using the Node.js and NPM page of the Settings dialog box.
    1. Open the project settings and click Bower.
    2. On the Bower page that opens, the Packages area shows all the Bower packages that are currently installed on your computer, both at the global and at the project level. Click add.
    3. In the Available Packages dialog box that opens, select the package.
    4. Select the Options check box and type --dev in the text box next to it.
    5. Optionally specify the product version and click Install Package to start installation.

See Also

Procedures:

Reference:

Web Resources: