LoginSignup
3
1

More than 3 years have passed since last update.

Spacemacsの「(Spacemacs) Warning: tern binary not found!」に対応する

Posted at

なんだか最近,

*message*
(Spacemacs) Warning: tern binary not found!

こんな警告がでる。
もしかしてJavaScriptモード使ってませんか?
内部でternというモジュールを使っているようです。

もしTerminalで

bash
which tern

をして何も表示されなければパターン1かな?
ternをインストールしないとなのでTerminalで,

bash
npm install --global tern

をする。パターン1はそれで終わりだとおもう。

パターン2として,which ternで,パスが帰ってきたら環境変数引き次がうまく言っていないので

dotspacemacs-additional-packages

exec-path-from-shell

を追加して,

dotspacemacs/user-init ()

(when (memq window-system '(mac ns))
  (require 'exec-path-from-shell)
  (exec-path-from-shell-initialize))

を書きましょう。たぶんそれでいける。
melpaなのでrequireいらないかもしれない。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1