Skip to content

ng new missing @angular-devkit #29494

Closed
Closed

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

Activity

  1. added
    freq1: low
    on Jan 27, 2025
  2. added 3 commits that reference this issue on Jan 28, 2025
    848ecef
    2acc9fe
    6b6eb90
  3. self-assigned this
    on Jan 28, 2025
  4. added a commit that references this issue on Jan 29, 2025
    14e3a71
  5. added a commit that references this issue on Jan 29, 2025
    cae068b
  6. angular-automatic-lock-bot commented on Mar 1, 2025

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  7. locked and limited conversation to collaborators on Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: @schematics/angularfreq1: lowseverity5: regressiontype: bug/fix

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions