尝试使用最新的angular-cli创建新项目我遇到了一些问题。
node -v v8.11.2
npm -v 6.1.0
ng -v
Angular CLI: 6.0.7
Node: 8.11.2
OS: win32 x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.6.7
@angular-devkit/core 0.6.7
@angular-devkit/schematics 0.6.7
@schematics/angular 0.6.7
@schematics/update 0.6.7
rxjs 6.2.0
typescript 2.7.2
运行gn new myapp
Error:
Schematic "ng-new" not found in collection "@schematics/angular".
Error: Schematic "ng-new" not found in collection "@schematics/angular".
at SchematicEngine.createSchematic(C:\...\node_modules\@angular\cli\node_modules\@angular-devkit\schematics\src\engine\engine.js:155:23)