Install and integrate Node.js
- Download and install Node.js.
- Integrate Node.js into PhpStorm:
Open Settings (Ctrl+Alt+S) -> Plugins -> Install JetBrains Plugins -> Search for Node.js -> Install the Plugin
Open Settings (Ctrl+Alt+S) again and go to Languages & Frameworks -> Node.js and NPM. In the Node interpreter field, specify the local Node.js interpreter to use. Also press the Enable Node.js core button to enable code assist. For more details about Node.js in PhpStorm read IntelliJ IDEA 2016.1 Help | Node.js
- Install the node package manager npm from within PhpStorm:
Install the npm package manager by clicking on the green add button . Beware to make the installation global by setting Options to -g, otherwise you end up with npm in your project folder. The -g option will install npm into your folder %AppData%/npm/For more details about using the package manager in PhpStorm read Installing and Removing External Software Using Node Package Manager.