[英]PhpStorm terminal npm (node)
I've just recently started using gulp.js in my projects and I've been trying to learn and use terminal a lot more.我最近才开始在我的项目中使用 gulp.js,并且我一直在尝试更多地学习和使用终端。
When I run npm commands from the mac terminal default console everything works great however when I run the same commands in PhpStorm the command is not found.当我从 mac 终端默认控制台运行 npm 命令时,一切正常,但是当我在 PhpStorm 中运行相同的命令时,找不到该命令。
I've followed PhpStorm's guides on installing and integrating the NodeJS plugin etc but I cant seem to get any of the commands to work through it even though its in my usr/local/bin
and was installed globally etc.我已经按照 PhpStorm 的指南安装和集成 NodeJS 插件等,但我似乎无法获得任何命令来完成它,即使它在我的
usr/local/bin
中并且已全局安装等。
When I SSH to vagrant though I can use the npm
commands etc. Would anyone happen to be able to suggest anything?当我从 SSH 到 vagrant 虽然我可以使用
npm
命令等。有人可以提出任何建议吗?
This one is quite old but I came across the same problem.这个已经很老了,但我遇到了同样的问题。 What I did was enter the terminal settings under
tools > terminal
, go to Application Settings, and change the Shell path to the one you need.我所做的是在
tools > terminal
下输入终端设置,go到应用程序设置,并将Shell路径更改为您需要的路径。 Click the ...
button and select the one that suits you.单击
...
按钮和 select 适合您的那个。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.