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

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

XMLWordPrintable

      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.

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

              Created:
              Updated: