I have the latest version of Emacs and Tern but I have a problem with using the plugin. When I use any Tern-related commands I get this command from editor:
Wrong type argument: listp, "Could not start Tern server
env: node: No such file or directory.
"
As far as I know, Tern uses NodeJs to do it's job, I have the latest version of NodeJs also but I don't know why I get this error.
Add the following line to your init file, replacing the path for node if necessary depending on where node is installed:
(setenv "PATH" (concat "/usr/local/bin:" (getenv "PATH")))