Monday 10 April 2017

Error: EACCES: permission denied, open '/usr/share/tomcat6/.npmrc

I integrated node.js with jenkins and when i executed npm install in the execute shell i am getting the following error. Jenkins and node.js is installed on RHEL v6.4. Please help how to resolve this issue.

npm ERR! Linux 2.6.32-504.8.1.el6.x86_64 npm ERR! argv "/data/tomcat/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Nodejs_6.10.0/bin/node" "/data/tomcat/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Nodejs_6.10.0/bin/npm" "install" npm ERR! node v6.10.0 npm ERR! npm v3.10.10 npm ERR! path /usr/share/tomcat6/.npm npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall mkdir

npm ERR! Error: EACCES: permission denied, mkdir '/usr/share/tomcat6/.npm' npm ERR! at Error (native) npm ERR! { Error: EACCES: permission denied, mkdir '/usr/share/tomcat6/.npm' npm ERR! at Error (native) npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/usr/share/tomcat6/.npm', npm ERR! parent: 'iCabsApp' } npm ERR! npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request: npm ERR! /data/tomcat/jenkins/workspace/Test_job/npm-debug.log Build step 'Execute shell' marked build as failure Finished: FAILURE



via Sivakrishnan

No comments:

Post a Comment