The common issue if you are using Jenkins on Docker image provided by DigitalOcean is the build always failed if we build the solution with NodeJs.
After I tried to install NodeJS Plugin in Jenkin and build the NodeJs App, the error came up which causes the build failed was env: ‘node’: No such file or directory.
Problem: NodeJs is not installed in Docker Jenkins, even the install NodeJs plugin on Jenkin
SSH into Docker container Bash/Shell: docker exec -it eager_payne /bin/bash
Install NodeJs with command: apk add nodejs
If you enjoyed reading this, then please explore our other articles below: