按《使用 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
+ tern@0.24.3
added 30 packages from 125 contributors in 12.826s
参考
https://github.com/ternjs/tern_for_vim/issues/203