首页 > 解决方案 > Atom 不会从命令行启动

问题描述

我将 OSX 更新为 High Sierra,我的 Atom 停止从命令行工作。

$ atom . FSPathMakeRef(/Applications/Atom.app) failed with error -36.

我已经卸载了 Atom 并重新安装了 Atom 并运行了“安装 Shell 命令”。:/

有什么建议么?

标签: atom-editormacos-high-sierra

解决方案


通过单击 Applications 文件夹中的图标来运行 Atom。一旦 Atom 运行,转到 Atom 菜单并单击“安装 Shell 命令”。下次要运行 atom 时,请在终端命令行上键入 atom。如果这不起作用,请尝试将以下语句放入您的 .bash_profile

alias atom="Applications/Atom.app/Contents/MacOs/Atom"

推荐阅读