Angular Frontend deployment problems

When deploying my Angular application I get the error: “ng: not found.” Im on Node Version 16.16.0. I’ve triend the docs and other articles on Cloudflare Community but nothing seems to work.

Any help appreciated


It sounds like the packages are not being installed. Can you check to make sure your package.json file is included in your repo and contains the necessary angular packages?

If it all looks correct to you, then please share a link to the repo here if it is public, as it makes it easier to debug.

Unfortunately, I can’t share a link to the repo, but if it helps, here is the package.json: I can confirm the file is included in the repo.

  "name": "vss-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/animations": "^14.1.0",
    "@angular/common": "^14.1.0",
    "@angular/compiler": "^14.1.0",
    "@angular/core": "^14.1.0",
    "@angular/forms": "^14.1.0",
    "@angular/platform-browser": "^14.1.0",
    "@angular/platform-browser-dynamic": "^14.1.0",
    "@angular/router": "^14.1.0",
    "@fortawesome/angular-fontawesome": "^0.11.1",
    "@fortawesome/fontawesome-svg-core": "^6.2.1",
    "@fortawesome/free-solid-svg-icons": "^6.2.0",
    "ngx-cookie": "^6.0.1",
    "ngx-markdown": "^14.0.1",
    "rxjs": "~7.5.0",
    "tslib": "^2.3.0",
    "zone.js": "~0.11.4"
  "devDependencies": {
    "@angular-devkit/build-angular": "^14.1.3",
    "@angular/cli": "~14.1.3",
    "@angular/compiler-cli": "^14.1.0",
    "@types/jasmine": "~4.0.0",
    "autoprefixer": "^10.4.13",
    "jasmine-core": "~4.2.0",
    "karma": "~6.4.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.2.0",
    "karma-jasmine": "~5.1.0",
    "karma-jasmine-html-reporter": "~2.0.0",
    "postcss": "^8.4.19",
    "tailwindcss": "^3.2.4",
    "typescript": "~4.7.2"

A picture of the root directory:

Also, Cloudflare is reading the package.json. It does show a message saying it installed packages.