[英]How to configure WebStorm to point to VM node interpreter
The JetBrains Vagrant plugin applied to WebStorm handles the starting and stopping of the VM just fine.应用于 WebStorm 的 JetBrains Vagrant 插件可以很好地处理 VM 的启动和停止。 My project node interpreter is configured on the VM.
我的项目节点解释器是在 VM 上配置的。 When configuring the project settings in WebStorm only local node interpreters are available.
在 WebStorm 中配置项目设置时,只有本地节点解释器可用。
I am able to ssh into the VM and work with the node project from the command line, like always, but I would really like to integrate the IDE, as otherwise it is just a test editor / terminal multiplexer, and I actually don't need it.我能够像往常一样将 ssh 放入 VM 并从命令行使用节点项目,但我真的很想集成 IDE,否则它只是一个测试编辑器/终端多路复用器,而我实际上并没有需要它。
Is there something I am missing?有什么我想念的吗? On other Jetbrains products, ie PyCharm, the user is able to select the python interpreter from a vagrant vm, but it appears this is lacking on WebStorm.
在其他 Jetbrains 产品上,即 PyCharm,用户能够从 vagrant 虚拟机 select python 解释器,但 WebStorm 似乎缺少此功能。
目前不支持远程节点解释器,请投票支持WEB-1974和链接票证
它似乎还没有得到WebStorm的支持,但有一种解决方法描述了对官方文档的评论。
There is a way to do this now:现在有一种方法可以做到这一点:
In your Run/Debug configuration, you can choose the Node interpreter, and more importantly, add one: press the ... button.在您的运行/调试配置中,您可以选择 Node 解释器,更重要的是,添加一个:按...按钮。 Then you can add a remote interpreter, either
然后你可以添加一个远程解释器,要么
Then you can choose which you want to use:然后你可以选择你想使用的:
However, I noticed a bug.但是,我注意到一个错误。 This interpreter always uploads
node_modules
(could be gigabytes) to the remote interpreter.该解释器总是将
node_modules
(可能是千兆字节)上传到远程解释器。 There is no way to turn it off, even if you do exclude it in the settings:没有办法关闭它,即使您确实在设置中将其排除:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.