How to install Yeoman with Jenkins on OpenShift?

Solution Verified - Updated -

Issue

  • How to install Yeoman on the Jenkins instance?
  • When trying to install Yeoman on jenkins instance errors are seen:
[\> npm install -g yeoman
npm ERR! Error: EACCES, mkdir '/var/lib/openshift/<ID>/.npm'
npm ERR!  { [Error: EACCES, mkdir '/var/lib/openshift/<ID>/.npm']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/var/lib/openshift/<ID>/.npm' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

Environment

  • Openshift Online

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content