Need to install and uninstall dependencies in Webstorm from package.json

node.js, webstorm

Solution

You can open terminal window inside WebStorm and then run npm commands from there.

To install packages mentioned in package.json:

npm install

To remove extraneous packages

npm prune

Problem

How can you get Webstorm to install all node modules listed in package.json and remove any node modules not listed there?

Original source