Cursor启动报错无法解析

274 阅读1分钟

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

Image 12: 返回主页

阿狸哥哥

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

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