[Node.js] Operation not permitted


错误信息:

/data/jenkins/tmp/jenkins4462485758125132037.sh: line 4: /data/jenkins_slave/epjenkins81/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.13.0/bin/npx: Operation not permitted

解决办法:

出处:https://itecnote.com/tecnote/node-js-npm-err-error-eperm-operation-not-permitted-rename/
  1. clean cache with

     npm cache clean --force
    
  2. install the latest version of npm globally as admin:

     npm install -g npm@latest --force
    
  3. clean cache with

     npm cache clean --force