My Jenkins pipeline starts a java program on ec2 machine. In this program, I try to call npm install using ProcessBuilder like below.