Skip to content

Package "@angular/router" was found but does not support schematics. #62691

@DimitriTsikaridze

Description

@DimitriTsikaridze

Describe the problem that you experienced

In new angular docs it says

If your project does not have routing, you can install it manually with the following command:

ng add @angular/router

The Angular CLI will then install all the necessary dependencies.

running this command results in Package "@angular/router" was found but does not support schematics. this error.

Enter the URL of the topic with the problem

https://angular.dev/guide/routing

Describe what you were looking for in the documentation

No response

Describe the actions that led you to experience the problem

No response

Describe what you want to experience that would fix the problem

No response

Add a screenshot if that helps illustrate the problem

Image

If this problem caused an exception or error, please paste it here

Package "@angular/router" was found but does not support schematics.

If the problem is browser-specific, please specify the device, OS, browser, and version


Provide any additional information here in as much as detail as you can

{
  "name": "angular-routing",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "watch": "ng build --watch --configuration development"
  },
  "prettier": {
    "overrides": [
      {
        "files": "*.html",
        "options": {
          "parser": "angular"
        }
      }
    ]
  },
  "private": true,
  "dependencies": {
    "@angular/common": "^20.1.0",
    "@angular/compiler": "^20.1.0",
    "@angular/core": "^20.1.0",
    "@angular/forms": "^20.1.0",
    "@angular/platform-browser": "^20.1.0",
    "@angular/router": "^20.1.0",
    "rxjs": "~7.8.0",
    "tslib": "^2.3.0"
  },
  "devDependencies": {
    "@angular/build": "^20.1.0",
    "@angular/cli": "^20.1.0",
    "@angular/compiler-cli": "^20.1.0",
    "typescript": "~5.8.2"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: docsRelated to the documentation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions