Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

/usr/bin/env: node: Not a directory

When I try to trigger my Jenkins jobs to invoke this "deployproxy" I get this error saying "/usr/bin/env: node: Not a directory".

Please let me know how I can fix this. When I run this cmd on my EC2 it deploy proxy successfully without any errors.


Jenkins Console Output:

+ /apps/opt/node_modules/.bin/apigeetool deployproxy -u <user> -o <org> -e dev -n <name> -p '<password>' -L <URL>
/usr/bin/env: node: Not a directory
Build step 'Execute shell' marked build as failure
Sending e-mails to: <email>
[BFA] Scanning build for known causes...
[BFA] No failure causes found
[BFA] Done. 0s
Notifying upstream projects of job completion
Finished: FAILURE
0 1 1,861
1 REPLY 1