Webstorm throws an error when trying to run a command specified in package.json:
\"devDependencies\": {},
\"scripts\": {
\"dev\": \"./node_modu
On Windows I was unable to solve the problem using the Npm package configuration setting using a custom npm installation.
Installing a standard npm via the node.js solved the problem in WebStorm without having to set the Npm package configuration.
On Xubuntu and Linux Mint, use /usr/bin/lib/nodejs/npm.
If you installed Node.JS from the official website (not from the apt repository), you probably put the installation folder somewhere at /opt/node-v10.13.0-linux-x64 (depending on your preferences).
If so, you should modify your WebStorm settings as follows:
..." and in the opened window click on "+" button and "Add local". In the drop-down list select /opt/node-v10.13.0-linux-x64/bin/node and click OK. /opt/node-v10.13.0-linux-x64/bin and click OK. As it was pointed out already, for npm WebStorm doesn't expect you to provide the full path to npm binary, just to the folder where this binary is.just want to add some reference. in my machine it's in /usr/share/npm so just fill that field with that.
In my case ubuntu 18.04+PHPSTORM Helps this:
apt-get remove nodejs
apt-get remove npm
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
sudo apt-get install -y nodejs
Ran into the same issue after upgrading from 11.0.3 to 2016.1. Not sure if some configuration was wrongly copied or if they added a new field to specify the npm package.
Go to
Run > Edit Configurations > Defaults > npm
Browse to select a Node interpreter, using the [...] button.
You should find the Npm package field, fill it with YOUR_PATH_TO_NODE/lib/node_modules/npm.
If it does not work right away, restart WebStorm so that it is taken into account.