node.js - Unable to install bower on Openshift -
i unable install bower on openshift. keep on getting errors like
remote: npm err! error: enoent, lstat '/var/lib/openshift/537xxxxcd/app-root/runtime/repo/node_modules/bower/node_modules/mout/array/intersection.js'[k remote: npm err! if need help, may report log at:[k remote: npm err! <http://github.com/isaacs/npm/issues>[k remote: npm err! or email to:[k remote: npm err! <npm-@googlegroups.com>[k
you can see full deployment logs https://s3.amazonaws.com/archive.travis-ci.org/jobs/26291843/log.txt [from travis here].
i tried several approaches: 1) , without .bowerrc file
case:1
{ "directory": "~/app-root/runtime/repo/public/libs" "storage": { "cache": "~/app-root/runtime/repo/node_modules/bower/cache", "completion": "~/app-root/runtime/repo/node_modules/bower/completion", "git": "~/app-root/runtime/repo/node_modules/bower/git_template" }, "interactive": "false", "tmp":"~/app-root/runtime/repo/node_modules/bower/tmp", "cwd":"~/app-root/runtime/repo" }
case:2
{ "directory": "public libs" }
also, tried running following commands [in $home/app-root/runtime/repo] , tried npm install bower ssh shell
npm cache clear npm cache clean
any resolve great.
in case want @ repo can find here: https://github.com/prasunsultania/demoblog
here how made use of bower
on openshift using node.js cartridge:
prerequisites:
- usually have installed bower globally.
- the git repo push openshift must readily configured using bower
bower install
root of repo job.
necessary steps:
- create file
.openshift/action_hooks/deploy
- do
chmod +x .openshift/action_hooks/deploy
make executable before add , commit repo - add following lines file:
#!/usr/bin/env bash
home=$home/app-root/runtime cd ~/repo npm install bower ./node_modules/.bin/bower install
- add , commit file git repo
- push git repo openshift
Comments
Post a Comment