IntelliJ IDEA 13.1 Web Help

On this page:

Installing an external tool

Depending on the desired location of the tool executable file, choose one of the following methods:

  • Install the tool globally at the IntelliJ IDEA level so it can be used in any IntelliJ IDEA project.
  • Install the tool in a specific project and thus restrict its use to this project.

In either installation mode, make sure that the parent folder of the tool is added to the PATH variable. This enables you to launch the tool from any folder.

Installing an external tool globally

Global installation makes the tool available at the IntelliJ IDEA level so it can be used in any IntelliJ IDEA project. Moreover, during installation the parent folder of the tool is automatically added to the PATH variable, which enables you to launch the tool from any folder. To install the tool globally, do one of the following:

  1. Run the installation from the command line in the global mode:
    1. Switch to the directory where NPM is stored or define a PATH variable for it so it is available from any folder.
    2. Type the following command at the command line prompt:
      bower install -g  <tool name>
                          

      The -g key makes the tool run in the global mode. Because the installation is performed through NPM, the tool is installed in the npm folder. Make sure this parent folder is added to the PATH variable. This enables you to launch the tool from any folder.

  2. Run Bower from IntelliJ IDEA using the Bower page of the Settings dialog box.
    1. Open the project settings and click JavaScript, 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. Select the Options check box and type -g in the text box next to it.
    5. Optionally specify the product version and click Install Package to start installation.
Installing a tool in a project

Installing the tool 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.

See Also

Procedures:

Reference:

Web Resources: