Failed to start server: [Errno 2] No such file or directory: ‘tern‘

按《使用 Vim 搭建 JavaScript 开发环境 》
https://spacevim.org/cn/use-vim-as-a-javascript-ide/
做完成以后还是报错。

报错信息

Failed to start server: [Errno 2] No such file or directory: ‘tern’
在这里插入图片描述

解决办法

npm -g install tern

执行如下:

$ npm -g install tern              [14:46:49]
/usr/local/bin/tern -> /usr/local/lib/node_modules/tern/bin/tern
+ [email protected]
added 30 packages from 125 contributors in 12.826s

参考

https://github.com/ternjs/tern_for_vim/issues/203

猜你喜欢

转载自blog.csdn.net/lxyoucan/article/details/114695510