Skip to content

ng new missing @angular-devkit #29494

Closed
Closed
@sysmat

Description

@sysmat

Command

new

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

ng new my-workspace --no-create-application
cd my-workspace
ng generate library my-lib
  • angular.json
"test": {
          "builder": "@angular-devkit/build-angular:karma",
          "options": {
            "tsConfig": "projects/my-lib/tsconfig.spec.json",
            "polyfills": [
              "zone.js",
              "zone.js/testing"
            ],
            "karmaConfig": "projects/my-lib/karma.conf.js"
          }
        }
  • run test npm run test error
Error: Could not find the '@angular-devkit/build-angular:karma' builder's node package.

Minimal Reproduction

Exception or Error

Error: Could not find the '@angular-devkit/build-angular:karma' builder's node package.

Your Environment

Angular: 19.1.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1901.4
@angular-devkit/core         19.1.4
@angular-devkit/schematics   19.1.4
@angular/build               19.1.4
@angular/cli                 19.1.4
@schematics/angular          19.1.4
ng-packagr                   19.1.1
rxjs                         7.8.1
typescript                   5.7.3
zone.js                      0.15.0

Anything else relevant?

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions