Ctrl+alt+s Open the setting menu and find external tools
Dot + number, fill in the Blanks in tool setting:
Program-and external command location, fill in the full path of NPM
Parameters-parameters, set here to $Prompt $ when you run a command, the popup window allows you to enter
In which directory working directory, run this command, enter $projectfiledir$ to run under the current project's root directory.
Click on the right of the Insert macro can see more options, in addition to macro instructions, Webstorm will also tell you the corresponding macro in the current environment is a value, not afraid to read E.
Finally give this command a name, called NPM to save the finished, in the top menu to find tools to see just saved NPM. Clicking on it will pop up a window and enter install Express to try it out.
Call the command line directly in the Webstorm