Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44910

Error: EACCES: permission denied, mkdir '/home/jenkins/.npm' in container

    Details

    • Similar Issues:

      Description

      Hello
      I use the docker slave plugin and when I try to run command "npm install" in node container I get next error:
      npm ERR! Linux 3.13.0-119-generic
      npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
      npm ERR! node v7.10.0
      npm ERR! npm v4.2.0
      npm ERR! path /home/jenkins/.npm
      npm ERR! code EACCES
      npm ERR! errno -13
      npm ERR! syscall mkdir

      npm ERR! Error: EACCES: permission denied, mkdir '/home/jenkins/.npm'
      npm ERR!

      { Error: EACCES: permission denied, mkdir '/home/jenkins/.npm' npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/home/jenkins/.npm', npm ERR! parent: 'app' }

      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! /home/jenkins/.npm/_logs/2017-06-15T09_56_04_851Z-debug.log

      Could you please fix it.

        Attachments

          Activity

          Show
          mengxin Xin Meng added a comment - - edited someone said add env to the docker  https://stackoverflow.com/questions/42743201/npm-install-fails-in-jenkins-pipeline-in-docker/42957034?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa but do not know how to configure it  

            People

            • Assignee:
              Unassigned
              Reporter:
              yurygoncharuk Yury Goncharuk
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: