Skip to content

Instantly share code, notes, and snippets.

@johnpmitsch
Created May 31, 2017 14:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnpmitsch/ee9c66fe939d038037d88245faa93ac8 to your computer and use it in GitHub Desktop.
Save johnpmitsch/ee9c66fe939d038037d88245faa93ac8 to your computer and use it in GitHub Desktop.
Workaround for foreman/katello npm install error

error

node: error while loading shared libraries: libhttp_parser.so.2: cannot open shared object file: No such file or directory

workaround

yum remove -y nodejs* npm
yum clean all
rpm -qa 'node|npm' | grep -v nodesource #should return no packages 
curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
yum install -y nodejs
cd /home/vagrant/foreman
npm install
rake webpack:compile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment