Installed : C:\_ng\new_ig1>npm i -g @igniteui/angular-schematics
then run command below, and got the error, any advice why?
ng new igGrid2sch --collection="@igniteui/angular-schematics" --template=side-nav
Log:
[error] Error: Collection "@igniteui/angular-schematics" cannot be resolved.at SchematicEngineHost.resolve (C:\node_modules\@angular-devkit\schematics\tools\node-module-engine-host.js:75:19)at SchematicEngineHost._resolveCollectionPath (C:\node_modules\@angular-devkit\schematics\tools\node-module-engine-host.js:80:37)at SchematicEngineHost.createCollectionDescription (C:\node_modules\@angular-devkit\schematics\tools\file-system-engine-host-base.js:118:27)at SchematicEngine._createCollectionDescription (C:\node_modules\@angular-devkit\schematics\src\engine\engine.js:162:40)at SchematicEngine.createCollection (C:\node_modules\@angular-devkit\schematics\src\engine\engine.js:155:43)at NewCommand.getCollection (C:\node_modules\@angular\cli\models\schematic-command.js:143:35)at NewCommand.initialize (C:\node_modules\@angular\cli\models\schematic-command.js:62:37)at async NewCommand.validateAndRun (C:\node_modules\@angular\cli\models\command.js:121:22)at async Object.runCommand (C:\node_modules\@angular\cli\models\command-runner.js:224:24)at async default_1 (C:\node_modules\@angular\cli\lib\cli\index.js:70:31)
Also what would be the reason to use angular-schematics vs Ignite UI Cli , they seems like do the same.. I did not have problem to create new pj with Ignite UI CLI
Still, what could be potential reasons for the angular schematics giving the error while it was installed.
If there are ways to check the settings.. the log file not very helpful.
[error] Error: Collection "@igniteui/angular-schematics" cannot be resolved