Skip to content

npm install fails due to missing stylus@0.54.8 (Angular 12) #30769

@kbalu-edvak

Description

@kbalu-edvak

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

Yes

Description

When running npm install on an Angular 12 project, the installation fails due to a dependency resolution error for stylus@0.54.8. The package version 0.54.8 does not exist on the npm registry, yet it is being requested as a peer dependency by stylus-loader@6.1.0, which is itself required by @angular-devkit/build-angular@12.2.18.

This breaks the installation flow for any project relying on Angular 12 with default tooling.

Please investigate and update any incorrect references to the nonexistent 0.54.8 version, or provide guidance on compatibility.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

npm WARN peer stylus@">=0.52.4" from stylus-loader@6.1.0
npm WARN node_modules/stylus-loader
npm WARN   stylus-loader@"6.1.0" from @angular-devkit/build-angular@12.2.18
npm WARN   node_modules/@angular-devkit/build-angular

npm ERR! code ETARGET
npm ERR! notarget No matching version found for stylus@0.54.8.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/kishore/.npm/_logs/2025-07-23T05_46_09_434Z-debug-0.log

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 12.2.18
Node: 16.16.0 (Unsupported)
Package Manager: npm 8.11.0
OS: linux x64

Angular: <error>
... animations, cdk, common, compiler, compiler-cli, core
... flex-layout, forms, localize, material, platform-browser
... platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1202.18 (cli-only)
@angular-devkit/build-angular   <error>
@angular-devkit/core            12.2.18 (cli-only)
@angular-devkit/schematics      12.2.18 (cli-only)
@angular/cli                    12.2.18 (cli-only)
@schematics/angular             12.2.18 (cli-only)
rxjs                            6.6.7 (cli-only)
typescript                      5.8.3 (cli-only)

Anything else?

No response

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