discolabs/grunt-shopify-theme-settings

ENOENT issue on Ubuntu

gavinballard opened this issue · 1 comments

Really an issue with htmltidy, but leaving here to track and in case anyone else runs in to this issue.

See:
lucidnz/bootstrapify-1#217
and
https://github.com/vavere/htmltidy/issues/11

I've tracked down this issue - it's due to htmltidy bundling 32-bit versions of the tidy library, which causes problems when running on 64-bit architecture.

Two possible solutions if you have a 64-bit system and you're running in to this problem:

  1. Enable support for running 32-bit binaries on your system by executing the following (recommended, easiest way to do this):
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
  1. Replace the binaries bundled with htmltidy with your system's tidy binary. This method doesn't require you to install anything, but it is a little more fiddly. First run which tidy to find out the path to your installation of the tidy library. It should be something like /usr/sbin/tidy. Then, from your project directory:
rm ./node_modeules/grunt-shopify-theme-settings/node_modules/htmltidy/bin/linux/tidy
ln -s /usr/bin/tidy ./node_modeules/grunt-shopify-theme-settings/node_modules/htmltidy/bin/linux/tidy