问题
Following error while executing webpack as jenkins job.
Error: EACCES: permission denied, rmdir 'dist/assets'
npm ERR! Linux 3.16.0-33-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "rimraf" "--" "dist"
npm ERR! node v7.0.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! rimraf: `rimraf "dist"`
npm ERR! Exit status 1
回答1:
This is a permissions issue, was fixed by giving jenkins full access rights to the concerned folder.
Similar issue also reported for NodeJS plugin npm install without root permissions
来源:https://stackoverflow.com/questions/40553395/error-eacces-permission-denied-rmdir-on-jenkins