node.js – 在尝试安装新的NPM包时,请在PhpStorm / WebStorm中指定“npm或yarn package”

尝试添加新包我收到以下错误:

enter image description here

翻看设置一切看起来都很好:

enter image description here


enter image description here

有什么建议去哪看?

解决方法

您需要指定npm的路径.

转到设置 – >语言和框架 – > Node.js和NPM,然后单击…旁边的节点解释器,然后单击npm包旁边的…并给出npm的路径,在我的情况下它是/usr/lib中/的NodeJS / NPM.

enter image description here

相关文章

createdtime20211113updatedtime20211113authorvenki.chen说...
Phpstorm是大多数PHP程序员们爱不释手的一款编码的集成开发工...
 PHPStorm设置打开您的项目,一旦打开,转到首选项并在语言...
前言:简单介绍下为什么要用断点调试,很多人说我在代码调试...
所以我在PHPStorm7.1中运行PHPUnit,但是我无法找到如何在测试...
参考:下载合适的XDebug点击这里,选择合适xdebugXAMPP配置p...