npm:命令未找到它无法在Jenkins用户中找到节点或npm
[
xxxxx-build-pipeline] $ /bin/bash /tmp/jenkins7546525206314731997.sh
Whoami
jenkins
/tmp/jenkins7546525206314731997.sh: line 4: node: command not found
/tmp/jenkins7546525206314731997.sh: line 5: npm: command not found
/var/lib/jenkins/workspace/ncc-do/xxxxxxx-pipeline
/tmp/jenkins7546525206314731997.sh: line 9: serverless: command not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE