“新的我的应用程序”的错误

我正在尝试使用最新版本的Angular生成一个新的项目和骨架应用程序。 我已经尝试卸载并重新安装Angular CLI使用:

C:\>npm install -g @angular/cli@latest 
 C:\>ng --version @angular/cli: 1.4.5 node: 8.8.1 os: win32 x64 

尝试在命令提示符下运行“ng new my-app”时发生此错误:

 'Error: The command "new" has an option without the required type and name field' 

任何帮助解决这个问题表示赞赏。

这是一个已知的问题,并在github上提出这个问题。

https://github.com/angular/angular-cli/issues/7984

尝试下面的命令:

 npm uninstall -g @angular/cli npm cache clean npm install -g @angular/cli@latest