How to use npm package installer from within WebStorm?

I see that it's a feature, but I could use documentation on how to use npm package installer from within WebStorm

4 comments

Hello!


In Settings/javascript/Node.js and NPM, press Install, enter the desired package name in the search field tolocate it, select, specify version/options if needed (using the corresponding fields in the lower right corner), press Install Package

0

I did this and the module I wanted got installed under node_modules, however package.json did not get updated. I suppose that still needs to be done manually?

0

To update the package.json when installing a new package, make sure to pass the '--save' option in Options field
It's not very intuitive, of course... If you need making this more evident, please vote for http://youtrack.jetbrains.com/issue/WEB-9561

0

Please sign in to leave a comment.