I am having issues with running an angular 19 inside docker container. I get the error: Node packages may not be installed. Try installing with 'npm install'. Error: Could not find the '@angular-devkit/build-angular:dev-server' builder's node package. This is my Dockerfile: FROM node:20 # Set working dir WORKDIR /app # Install Angular CLI RUN npm install -g @angular/cli@19 # Generate self-signed SSL certificates for Angular RUN mkdir -p /etc/ssl/certs && \ openssl req -x509 -newkey rsa:4096 -nodes \ -keyout /etc/ssl/certs/angular.key \ -out /etc/ssl/certs/angular.crt \ -days 365 \ -subj "/CN=angular.local" # Set secure permissions after cert generation RUN chmod 600 /etc/ssl/certs/angular.key && \ chmod 644 /etc/ssl/certs/angular.crt # If package.json exists, install deps COPY frontend/package*.json ./ RUN [ -f package.json ] && npm install || echo "Skipping npm install (no package.json yet)" # Copy remaining files COPY frontend/ . # Generate certs and run HTTPS server CMD ["ng", "serve", "--host", "0.0.0.0", "--ssl", "true", "--ssl-key", "/etc/ssl/certs/angular.key", "--ssl-cert", "/etc/ssl/certs/angular.crt"] And this is my package.json: { "name": "frontend", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "watch": "ng build --watch --configuration development", "test": "ng test" }, "private": true, "dependencies": { "@angular/cdk": "^19.2.18", "@angular/common": "^19.2.0", "@angular/compiler": "^19.2.0", "@angular/core": "^19.2.0", "@angular/forms": "^19.2.0", "@angular/material": "^19.2.18", "@angular/platform-browser": "^19.2.0", "@angular/platform-browser-dynamic": "^19.2.0", "@angular/router": "^19.2.0", "chart.js": "^4.5.0", "ng2-charts": "^8.0.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.15.0" }, "devDependencies": { "@angular-devkit/build-angular": "^19.2.15", "@angular/cli": "^19.2.15", "@angular/compiler-cli": "^19.2.0", "@types/jasmine": "~5.1.0", "jasmine-core": "~5.6.0", "karma": "~6.4.0", "karma-chrome-launcher": "~3.2.0", "karma-coverage": "~2.2.0", "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "~2.1.0", "typescript": "~5.7.2" } } Any help is appreciated,thanks! Continue reading...