LoginSignup
1
0

More than 5 years have passed since last update.

Sublime Text3でHTML/CSS/JS Prettifyパッケージ実行エラーの対処法

Last updated at Posted at 2018-02-03

SublimeパッケージHTML/CSS/JS Prettify実行時のエラー解決法です。
実行方法はcmd + shift + h

現象

下記エラーが発生。
01.png

node.jsの見つからないよって怒られているみたいです。

nodeのpathファイル

上記エラーのOKを押すと下記キャプチャへと飛びます。

02.png

下記方法でも飛べます。
ツール → HTML/CSS/JS Prettify → Set node Path

03.png

パス設定

{
        "windows": "C:/Program Files/nodejs/node.exe",
        "linux": "/usr/bin/nodejs",
       # "osx": "/usr/local/bin/node" 初期設定

        "osx": "/Users/ユーザー名/.nodebrew/current/bin/node" # こちらに書き換える
    },

まとめ

nodeのインストール方法によって問題が起きたようです。
純粋にnodeをインストールしただけだと初期設定にもあった/usr/local/bin/nodeで大丈夫みたいですが、nodebrewだとパスが変わるみたいです。

参考文献

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