Question

I've installed JsHint Gutter package in my SublimeText 2, but when I'm try to use it SublimeText give me this error:

Node.js was not found in the default path. Please specify the location.

The path on the preference file is right.If I try to type it in my console it works fine. This is the line of the pref. file where the path is set.

    "node_path": "/usr/local/bin/node"

This is the versions info:

  • MacOS X 10.9
  • Sublime Text 2.0.2
  • node.js v0.10.22
Was it helpful?

Solution

Take a look at this, seems like you're gonna have to node_path to your nodes absolute path

Check this out Oh noez, command not found!

If you get an error sh: node: command not found or similar, you don't have node in the right path. Try setting the absolute path to node in JSHint.sublime-settings.

Ctrl+Shift+P or Cmd+Shift+P in Linux/Windows/OS X type jshint, select Set node Path This means from: "node_path": "/usr/local/bin/node" change to "node_path": "/your/absolute/path/to/node"

Simply using node without specifying a path sometimes doesn't work :(

For example, on Linux the path could be in /home//.nvm//bin/node.

Or just update to Sublime Text 3

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top