Skip to content

Schematic "ng-new" not found in collection "@schematics/angular". #10862

@npahalZenways

Description

@npahalZenways

Versions

Angular CLI: 6.0.1
Node: 8.9.1
npm: 5.5.1



     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 6.0.1
Node: 8.9.1
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.6.1
@angular-devkit/core         0.6.1
@angular-devkit/schematics   0.6.1
@schematics/angular          0.6.1
@schematics/update           0.6.1
rxjs                         6.1.0
typescript                   2.7.2

Repro steps

  • Step 1
    Update Angular CLI from version 1.7.6 to 6.0.1 using command "npm install -g @angular/cli"
  • Step 2
    Use command "ng new my-new-app" to create a new application
  • Step 3

Observed behavior

Generates an error:

Schematic "ng-new" not found in collection "@schematics/angular".
Error: Schematic "ng-new" not found in collection "@schematics/angular".
at SchematicEngine.createSchematic (C:\Users\pahal\AppData\Roaming\npm\node_modules@angular\cli\node_modules@angular-devkit\schematics\src\engine\engine.js:155:23)
at CollectionImpl.createSchematic (C:\Users\pahal\AppData\Roaming\npm\node_modules@angular\cli\node_modules@angular-devkit\schematics\src\engine\collection.js:12:29)
at NodeWorkflow.execute (C:\Users\pahal\AppData\Roaming\npm\node_modules@angular\cli\node_modules@angular-devkit\schematics\tools\workflow\node-workflow.js:69:38)
at Promise (C:\Users\pahal\AppData\Roaming\npm\node_modules@angular\cli\models\schematic-command.js:140:22)
at new Promise ()
at NewCommand.runSchematic (C:\Users\pahal\AppData\Roaming\npm\node_modules@angular\cli\models\schematic-command.js:139:16)
at NewCommand. (C:\Users\pahal\AppData\Roaming\npm\node_modules@angular\cli\commands\new.js:77:25)
at Generator.next ()
at C:\Users\pahal\AppData\Roaming\npm\node_modules@angular\cli\commands\new.js:7:71
at new Promise ()

<!-- Normally this includes a stack trace and some more information. -->

Desired behavior

It should create a new angular application.

Mention any other details that might be useful (optional)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions