3

I have installed tern use npm and install tern.el from melpa. I put the path of tern.el in my init file as per instructions on the emacs section of the tern homepage. However when I enable tern mode and try to run a command such as jump to definition at point, I get the following error:

Searching for program: no such file or directory, tern

What is the issue?

3
  • Have you installed tern, the external program?
    – PythonNut
    Jun 29, 2015 at 21:21
  • Yes, I'm able to start the tern server from the command line. Jun 30, 2015 at 1:59
  • I was having the same issue. I tried reinstalling tern and changing the path, but this didn't solved it. With --debug-init I found there was an issue in markdown-mode (which I load some lines before tern-mode). When I commented out the markdown-mode the message disappeared.
    – Choma
    Mar 3, 2016 at 11:34

1 Answer 1

3

I had the same issue. Tern was installed in /usr/local/bin, but emacs was not looking for it there. I added this to my init file to add /usr/local/bin to the path.

(setenv "PATH" (concat (getenv "PATH") ":/usr/local/bin"))
    (setq exec-path (append exec-path '("/usr/local/bin")))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.