fzmfus-MacBook-Pro:angular fzmfu$ ng new Schematic “ng-new” not found in collection “@schematics/angular”. Error: Schematic “ng-new” not found in collection “@schematics/angular”. at SchematicEngine.createSchematic (/usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/src/engine/engine.js:224:23) at CollectionImpl.createSchematic (/usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/src/engine/engine.js:69:29) at Object.getSchematic (/usr/local/lib/node_modules/@angular/cli/utilities/schematics.js:43:23) at NewCommand.getOptions (/usr/local/lib/node_modules/@angular/cli/models/schematic-command.js:216:40) at NewCommand.<anonymous> (/usr/local/lib/node_modules/@angular/cli/commands/new.js:57:49) at Generator.next (<anonymous>) at fulfilled (/usr/local/lib/node_modules/@angular/cli/commands/new.js:11:58) at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7) at Function.Module.runMain (module.js:695:11)
重新安装一下 angular试试 可能是 脚手架安装的问题
@vueper 重新安装了好多次,就差也把Node卸掉了,Angular我还找不到历史版本来安装了
使用了这个命令之后问题解决了:rm -rf node_modules