Closed FGRibreau closed 10 years ago
Same here.
me too
ditto
again. on php files.
me too. on php files
I'm seeing this same error, while trying to reformat code for an .html file in Sublime Text 2 for mac.
In Sublime Text 3 for mac I get this:
CodeFormatter Format error: [Errno 2] No such file or directory: 'node'
NodeJS is installed:
$ which node /usr/local/bin/node
Am I missing something?
I'm also getting the same error - Sublime Text 2 on OS X. Anyone have a solution yet?
Me too.
Same problem here, node installed. Anybody has a solution?
$ which node /usr/local/bin/node
I will fix it
I think we could take a flexible approach, like SublimeLinter's.
@akalongman any chance you got to fixing it?
Having the issue on OSX, with sublime 3, node is in /usr/local/bin/node (via homebrew)
Is there any way to get around this temporarily?
Having this problem trying to format .HTML files.
i have the same issue in sublime 3
Semi-solved it...
I was getting the "Format error: [Errno 2] No such file or directory" Then I read the comment of @ifthenelse and it lead me to think "hey, if I made a symlink on /usr/bin/node pointing to /usr/bin/nodejs would it work?" And it does!
So, all I did was: sudo ln -s /usr/bin/nodejs /usr/bin/node
This is a semi-solution... the real solution would be the plugin detecting the correct name for the nodejs command, but at least a got it to work..
same problem ST2 on Mac OS
sudo rm -f /usr/bin/node
sudo ln -s /usr/local/bin/nodejs /usr/bin/node
A variation on LynxEyes' solution. This fixed it for me. Depends where your node is which node
Thanks LynxEyes, works for me now.
I was able to resolve this by creating a symlink to the official nodejs package binary via:
sudo ln -s /usr/local/bin/node /usr/bin/node
Method from @dylan-k works...thanks!
@dylan-k's isn't working out for me, any ideas?
sudo ln -s /usr/local/bin/node /usr/bin/node
ln: /usr/bin/node: File exists
Node:
node which
/usr/local/bin/node
@dwils7 The ln
command is complaining about an existing node
binary in /usr/bin
. Seeing as you have node
installed in /usr/local/bin
, you're likely safe to sudo rm /usr/bin/node
& sudo ln -s /usr/local/bin/node /usr/bin/node
I use NVM and symlink worked for me too.
@dylan-k 's solution worked for me, thanks.
$ which node
/usr/local/bin/node
$ sudo ln -s /usr/local/bin/node /usr/bin/node
Same issue here, had added the symlink and got it working for html/css but it's not working for php. Also rm and recreated - no luck. Restarted sublime each time... any other ideas... does my directory structure and config file matter at all?
Fixed. Removed node dependency
Hello!
I'm trying to format a JavaScript file on Sublime text2 with codeformatter and all I get is:
Node is installed