akalongman / sublimetext-codeformatter

Code Formatter plugin for ST2/ST3
MIT License
772 stars 130 forks source link

Broken path when installed with git clone #25

Closed cramhead closed 10 years ago

cramhead commented 11 years ago

I followed the instructions on installing via git clone and had a problem module loading error, shown below. I was fixed by adding a symlink in the Sublime Text 3/Packages folder. ln -s sublimetext-codeformatter CodeFormatter.

CodeFormatter

Format error:

module.js:340 throw err; ^ Error: Cannot find module '/Users/cram/Library/Application Support/Sublime Text 3/Packages/CodeFormatter/codeformatter/htmlbeautifier/exec.js' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:901:3

johannesjo commented 10 years ago

Same here.

disko commented 10 years ago

You need to clone like this:

cd ~/Library/Application Support/Sublime Text 3/Packages
git clone git@github.com:akalongman/sublimetext-codeformatter.git CodeFormatter