Skip to content

HELP ME Unknown collection "@schematics/angular" When I use ng g compent home #7630

@richqez

Description

@richqez

Bug Report or Feature Request (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.


/ \ _ __ __ _ _ | | __ _ _ __ / | | | |
/ △ \ | '
\ / _ | | | | |/ _ | '
| | | | | | |
/ ___ | | | | (
| | || | | (| | | | || | | |
// __| ||_, |_,||_,|| _|||
|___/
@angular/cli: 1.4.0
node: 7.10.0
os: win32 x64
@angular/animations: 4.3.6
@angular/common: 4.3.6
@angular/compiler: 4.3.6
@angular/core: 4.3.6
@angular/forms: 4.3.6
@angular/http: 4.3.6
@angular/platform-browser: 4.3.6
@angular/platform-browser-dynamic: 4.3.6
@angular/platform-server: 4.3.6
@angular/router: 4.3.6
@angular/upgrade: 4.1.3
@angular/cli: 1.4.0
@angular/compiler-cli: 4.3.6
typescript: 2.3.4

Repro steps.

The log given by the failure.

ng g component r101c --module=eis/eis.module
Unknown collection "@schematics/angular".
Error: Unknown collection "@schematics/angular".
at SchematicEngine.createCollection (C:\PI-Data-Center-App\node_modules@angular-devkit\schematics\src\engine\engine.js:45:19)
at Object.getCollection (C:\PI-Data-Center-App\node_modules@angular\cli\utilities\schematics.js:32:31)
at Class.run (C:\PI-Data-Center-App\node_modules@angular\cli\tasks\schematic-get-options.js:11:41)
at Class.beforeRun (C:\PI-Data-Center-App\node_modules@angular\cli\commands\generate.js:89:31)
at Promise.resolve.then (C:\PI-Data-Center-App\node_modules@angular\cli\ember-cli\lib\cli\cli.js:150:24)

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