Cursor启动报错:无法解析 shell 环境: 来自生成的 shell 的意外退出代码(代码 9、信号 null)

Cursor启动报错:无法解析 shell 环境: 来自生成的 shell 的意外退出代码(代码 9、信号 null)

检查 ~/.bash_profile是否配置了如下的代码,有的话删掉。source ~/.bash_profile,退出重新打开Cursor,报错就没有了。

export NODE_OPTIONS=--openssl-legacy-provider

这个问题会影响Cursor使用MCP功能,导致MCP一直显示client closed。

解决掉上面的报错,MCP功能就可以用了。o( ̄▽ ̄)d

posted @ 2025-04-09 20:54  阿狸哥哥  阅读(344)  评论(0)    收藏  举报