"Please specify npm package or yarn" in PhpStorm / WebStorm when trying to install a new NPM package

Trying to add a new package, I get the following error:

enter image description here

Switching settings looks good:

enter image description here enter image description here

Any suggestions where to look next?

+3
source share
1 answer

You need to specify the path to npm.

go to settings-> Languages ​​and frameworks β†’ Node.js and NPM and click ... along with the Node interpreter, and then click ... next to the npm package and specify the path to npm, in my case it is /usr/lib/nodejs/npm.

enter image description here

+10
source

Source: https://habr.com/ru/post/1664813/


All Articles