Skip to content

Error: Could not find the '@angular-devkit/build-angular:ng-packagr' builder's node package. #34

@maximilianmau

Description

@maximilianmau

When I try to run "npm run build" the following output comes:

Node packages may not be installed. Try installing with 'npm install'.
Error: Could not find the '@angular-devkit/build-angular:ng-packagr' builder's node package.

This is my ng version

Angular CLI: 17.3.0
Node: 20.12.2
Package Manager: npm 10.5.0
OS: win32 x64

Angular: <error>
... animations, common, core, forms, platform-browser
... platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1703.0 (cli-only)
@angular-devkit/build-angular   19.0.7 (cli-only)
@angular-devkit/core            17.3.0 (cli-only)
@angular-devkit/schematics      17.3.0 (cli-only)
@angular/cli                    17.3.0 (cli-only)
@angular/compiler               19.0.6 (cli-only)
@angular/compiler-cli           19.0.6 (cli-only)
@schematics/angular             17.3.0 (cli-only)
ng-packagr                      19.0.1 (cli-only)
rxjs                            7.8.1 (cli-only)
typescript                      5.6.3 (cli-only)
zone.js                         <error>

Desktop (please complete the following information):

  • OS: Windows

I had to install build-angular and ng-packagr myself because otherwise these packages were displayed with . But despite the manual installation it doesn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions