Skip to content

schematics-cli when used as a standalone cannot find a globally installed external schematic #33482

Description

@MartinFillon

Command

other

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

When running schematics cli by itself with a globally installed external schematic it fails to resolve / find the schematic

Minimal Reproduction

- pnpm install -g @nanoforge-dev/schematics @angular-devkit/schematics-cli
- schematics --list-schematics @nanoforge-dev/schematics:

Exception or Error

collection `@nanoforge-dev/schematics` not found

Your Environment

[nix-shell:/tmp]$ node -v
v24.15.0

[nix-shell:/tmp]$ pnpm -v
11.5.3

[nix-shell:/tmp]$ pnpm install -g @nanoforge-dev/schematics @angular-devkit/schematics-cli
.../pnpm/global/v11/7367-19f12d3e4c5     |  +33 +++
.../pnpm/global/v11/7367-19f12d3e4c5     | Progress: resolved 33, reused 33, downloaded 0, added 0, done
.../pnpm/global/v11/7367-19f12d3fc85     |  +57 ++++++
.../pnpm/global/v11/7367-19f12d3fc85     | Progress: resolved 57, reused 57, downloaded 0, added 0, done

global:
+ @angular-devkit/schematics-cli 22.0.4
+ @nanoforge-dev/schematics 2.1.3

Done in 6.8s using pnpm v11.5.3

Anything else relevant?

Works as intended if the schematics is in a local node_modules

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions