if you run at that level will create, always create a cwd already the plan is to ask tern to not create that file
I just upgrade tern to 0.24.0 which supports "--no-port-file" option.
Then I upgrade ternjs.py by using that option, it works well for me.
Please check this commit
Hi @carlitux I found the tern process writes "~/.tern-port" pid file. I just delete it before leaving vim. Please check it out. Thank you.