我有最新版本的 Emacs 和 Tern但我在使用插件时遇到问题。当我使用任何与 Tern 相关的命令时,我从编辑器中得到这个命令:
Wrong type argument: listp, "Could not start Tern server
env: node: No such file or directory.
"
据我所知,Tern 使用 NodeJs 来完成它的工作,我也有最新版本的 NodeJs,但我不知道为什么会出现此错误。
最佳答案
将以下行添加到您的初始化文件中,必要时根据安装 Node 的位置替换 Node 的路径:
(setenv "PATH" (concat "/usr/local/bin:" (getenv "PATH")))
关于node.js - 无法在 Emacs 中启动 Tern 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18102833/