githubEdit

ng not found error while docker build in jenkins pipeline (script)

Issue found on npm while docker build: hicare_omdashboard_prod

The issue is simple, npm doesn't know about ng.

I got the following issue while docker build:

From the logs shell script, I found:

  1. Then, I looking for Dockerfile.

  • Status -> Workspace -> given link

In my case,

Workspaces for OM Dashboard Angular Pipeline(S3 Prod) Docker-ECR #95

  1. Check the Dockerfile.

I found:

Then, I tried to install angular/cli with dockerfile. But I ask for version 18.0.2.

Later, I installed the angular/cli in cli instead of dockerfile: Install in the jenkins server cli:

Issue is finally solved. 🎉

Last updated