-
Bug
-
Resolution: Duplicate
-
Blocker
-
None
-
Jenkins 1.652; RHEL Server 6.7 (Santiago); NodeJS plugin 0.2.1; Node version 5.x and npm version 3.x (also tried with Node 4.x and npm 2.x)
Here is the error stack:
npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.8 npm ERR! Linux 2.6.32-573.18.1.el6.x86_64 npm ERR! argv "/vol_01/sys_apps_01/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/node-5.9.0/bin/node" "/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/node-5.9.0/bin/npm" "install" npm ERR! node v5.9.0 npm ERR! npm v3.7.3 npm ERR! path /vol_01/sys_apps_01/jenkins/jobs/MyJob/workspace/node_modules/mkdirp npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/vol_01/sys_apps_01/jenkins/jobs/MyJob/workspace/node_modules/mkdirp' npm ERR! at Error (native) npm ERR! { [Error: EACCES: permission denied, access '/vol_01/sys_apps_01/jenkins/jobs/MyJob/workspace/node_modules/mkdirp'] npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/vol_01/sys_apps_01/jenkins/jobs/MyJob/workspace/node_modules/mkdirp' } 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! /vol_01/sys_apps_01/jenkins/jobs/MyJob/workspace/npm-debug.log
"npm install" is being triggered via the pom.xml. There weren't issues with it in the past, but for some reason it's not working now. "npm install" is a local install, and should never require root permissions unless the folder it is writing to is only writable by root. I've set the "node_modules" folder so that it can be written to by anyone, and the error still persists.
- duplicates
-
JENKINS-27170 "Provide Node & npm bin/ folder to PATH" not working for "npm install"
- Closed