I am unable to install bower on Openshift. I keep on getting errors like
remote: npm ERR! Error: ENOENT, lstat \'/var/lib/openshift/537xxxxcd/app-root/runtime/re
Here is how I made use of bower
on OpenShift using the node.js cartridge:
Prerequisites:
bower install
from the root of the repo will do the job.Necessary steps:
.openshift/action_hooks/deploy
chmod +x .openshift/action_hooks/deploy
to make it executable BEFORE you add and commit it to your repo#!/usr/bin/env bash
HOME=$HOME/app-root/runtime
cd ~/repo
npm install bower
./node_modules/.bin/bower install