s-a / sublime-text-refactor

A Sublime Text Refactor Plugin for Javascript Code
213 stars 12 forks source link

Error b'/bin/sh: node: command not found\n' #15

Closed adrianortuzar closed 11 years ago

adrianortuzar commented 11 years ago

I have node install but It is appear this error "b'/bin/sh: node: command not found\n'" each time that I trie to use the plugin.

I really like the idea of this plugin. I hope somebody can help me to solve this issue, thank you.

s-a commented 11 years ago

Hello @adrianortuzar. Right click to show the context menu. Then "Refactor/Preferences - Refactor Settings - User" Then enter...

{
    "nodePath" : "FULL PATH TO YOUR NODE"
}
adrianortuzar commented 11 years ago

Thank you, I did it.

And now I have this error: b"\nmodule.js:340\n throw err;\n ^\nError: Cannot find module '/Users/myuser/Library/Application Support/Sublime Text 3/Installed Packages/JavaScript Refactor.sublime-package/js/run-goto-definition.js'\n at Function.Module._resolveFilename (module.js:338:15)\n at Function.Module._load (module.js:280:25)\n at Function.Module.runMain (module.js:497:10)\n at startup (node.js:119:16)\n at node.js:901:3\n"

s-a commented 11 years ago

I think this refers to #7 Please take a look at what @hced did to fix the problem. I think he did it by cloning manualy. I am currently very busy. So it would be nice if you could investigate some time to figure out what is realy the probem.

So I close this ticket now reagarding to "node: command not found"

adrianortuzar commented 11 years ago

Thank you for this awesome feature¡¡