LoginSignup
0
0

More than 5 years have passed since last update.

DropboxなどでSublimeTextの設定を共有してて、プラグインのパス設定がうまくいかない時に原因かもしれないこと

Posted at

超初歩的なものかもしれませんが、個人的にうんざりするくらいわからなかったので。。

sublimetextにSublimeLinterとSublimeLinter-phplintをいれ、コマンドもインストールしたのに(npm --global install phplint)SublimeTextで実行されない。
パスが通っていないからSublimeLinterの設定ファイルに記述しなければいけないのはわかっているけど、そのパスの通し方がわからなかった。

解決方法

SublimeLinter.sublime-settingsに
user->linters->phplint->argsの箇所に
"${home}/.nodebrew/current/bin/phplint"と記述する
記述パスは各コマンドパスにより変わります

Settings — SublimeLinter 3.4.24 documentation

他にもHTMLPrettifyというプラグインもnodeのパス指定を同じ方法で解決

0
0
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
0
0