在openshift上安装zerorpc而不用sudo访问+安装yum install libpq-dev依赖

我有没有sudo访问运行npm install zerorpc的问题。

yum安装libpq-dev的依赖项安装尝试

error: cannot open Packages database in /var/lib/rpm CRITICAL:yum.main: Error: rpmdb open failed 

对于npm安装尝试,我得到的错误 – 关于如何安装与sudo访问zerorpc任何想法?

 npm http GET https://registry.npmjs.org/zerorpc npm http 304 https://registry.npmjs.org/zerorpc npm ERR! Error: EACCES, mkdir '/var/lib/openshift/53475f0f50044611030002fb/node_modules' npm ERR! { [Error: EACCES, mkdir '/var/lib/openshift/53475f0f50044611030002fb/node_modules'] npm ERR! errno: 3, npm ERR! code: 'EACCES', npm ERR! path: '/var/lib/openshift/53475f0f50044611030002fb/node_modules', npm ERR! fstream_type: 'Directory', npm ERR! fstream_path: '/var/lib/openshift/53475f0f50044611030002fb/node_modules/zerorpc', npm ERR! fstream_class: 'DirWriter', npm ERR! fstream_stack: npm ERR! [ '/opt/rh/nodejs010/root/usr/lib/node_modules/fstream/lib/writer.js:171:23', npm ERR! '/opt/rh/nodejs010/root/usr/lib/node_modules/mkdirp/index.js:37:53', npm ERR! 'Object.oncomplete (fs.js:107:15)' ] } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! System Linux 2.6.32-431.11.2.el6.bz844450.x86_64 npm ERR! command "node" "/opt/rh/nodejs010/root/usr/bin/npm" "install" "zerorpc" npm ERR! cwd /var/lib/openshift/53475f0f50044611030002fb npm ERR! node -v v0.10.5 npm ERR! npm -v 1.2.17 npm ERR! path /var/lib/openshift/53475f0f50044611030002fb/node_modules npm ERR! fstream_path /var/lib/openshift/53475f0f50044611030002fb/node_modules/zerorpc npm ERR! fstream_type Directory npm ERR! fstream_class DirWriter npm ERR! code EACCES npm ERR! errno 3 npm ERR! stack Error: EACCES, mkdir '/var/lib/openshift/53475f0f50044611030002fb/node_modules' npm ERR! fstream_stack /opt/rh/nodejs010/root/usr/lib/node_modules/fstream/lib/writer.js:171:23 npm ERR! fstream_stack /opt/rh/nodejs010/root/usr/lib/node_modules/mkdirp/index.js:37:53 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: EACCES, open 'npm-debug.log' npm ERR! { [Error: EACCES, open 'npm-debug.log'] errno: 3, code: 'EACCES', path: 'npm-debug.log' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! System Linux 2.6.32-431.11.2.el6.bz844450.x86_64 npm ERR! command "node" "/opt/rh/nodejs010/root/usr/bin/npm" "install" "zerorpc" npm ERR! cwd /var/lib/openshift/53475f0f50044611030002fb npm ERR! node -v v0.10.5 npm ERR! npm -v 1.2.17 npm ERR! path npm-debug.log npm ERR! code EACCES npm ERR! errno 3 npm ERR! stack Error: EACCES, open 'npm-debug.log' npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /var/lib/openshift/53475f0f50044611030002fb/npm-debug.log npm ERR! not ok code 0 

Solutions Collecting From Web of "在openshift上安装zerorpc而不用sudo访问+安装yum install libpq-dev依赖"