Sublime Forum

HTML/CSS/JS Prettify - Not working

#1

Team.

I’m on Sublime 3 for Mac OS X 10.11.6. Keep getting error message stating:

“Node.js was not found in the default path. Please specify the location.” …and then when I click ok it opens another tab (HTMLPrettify.sublime-settings) that has this message in it:

{
// Simply using node without specifying a path sometimes doesn’t work :frowning:
// https://github.com/victorporof/Sublime-HTMLPrettify#oh-noez-command-not-found
// http://nodejs.org/#download
“node_path”: {
“windows”: “C:/Program Files/nodejs/node.exe”,
“linux”: “/usr/bin/nodejs”,
“osx”: “/usr/local/bin/node”
},

// Automatically format when a file is saved.
“format_on_save”: false,

// Only format the selection if there’s one available.
“format_selection_only”: true,

// Log the settings passed to the prettifier from .jsbeautifyrc.
“print_diagnostics”: true
}

Please, any assistance here would be extremely helpful. Thank you.

0 Likes

#2

Did you install node.js? This package requires it. If you have, then you will have to put it in your path if it has not done so automatically.

0 Likes