编辑器进程退出,出现错误:spawn webstorm ENOENT

The editor process exited with an error: spawn webstorm ENOENT

提问人:Jamie Hutber 提问时间:11/16/2023 最后编辑:LazyOneJamie Hutber 更新时间:11/16/2023 访问量:14

问:

我试图告诉我的终端如何打开 WebStorm,但实际上重要的是,告诉我的开发环境它所在的位置,这样我就可以单击 Web 浏览器中的错误输出并直接将我带到发生错误的正确 file:line。

enter image description here

我可以用我的别名打开 WebStorm,只是指向路径不起作用:webstorm

PATH=$PATH:$HOME:/home/hutber/WebStorm/bin
alias webstorm=/home/hutber/WebStorm/bin/webstorm.sh

即使我可以键入并打开 WebStorm,我仍然在 CLI 中出现以下错误:webstorm

Could not open [...param].jsx in the editor.
The editor process exited with an error: spawn webstorm ENOENT.

To set up the editor integration, add something like REACT_EDITOR=atom to the .env.local file in your project folder and restart the development server.
npm intellij-idea webstorm

评论

2赞 lena 11/16/2023
看起来不在你的 ;尝试按照 jetbrains.com/help/webstorm/2023.2/ 中的说明创建符号链接... 有帮助吗?webstorm$PATH/usr/local/bin
0赞 Jamie Hutber 11/16/2023
确实很出色:这就是解决方案。我已经在我的 .bashrc 中映射了内容,但这不起作用!sudo ln -s /home/hutber/WebStorm/bin/webstorm.sh /usr/local/bin/webstorm

答: 暂无答案