admin管理员组文章数量:1327750
I am trying to generate a new project and skeleton application using the latest version of Angular. I have tried uninstalling and reinstalling Angular CLI using:
C:\>npm install -g @angular/cli@latest
C:\>ng --version
@angular/cli: 1.4.5
node: 8.8.1
os: win32 x64
This error occurs when trying to run 'ng new my-app' in mand prompt:
'Error: The mand "new" has an option without the required type and name field'
Any help to resolve this issue is appreciated.
I am trying to generate a new project and skeleton application using the latest version of Angular. I have tried uninstalling and reinstalling Angular CLI using:
C:\>npm install -g @angular/cli@latest
C:\>ng --version
@angular/cli: 1.4.5
node: 8.8.1
os: win32 x64
This error occurs when trying to run 'ng new my-app' in mand prompt:
'Error: The mand "new" has an option without the required type and name field'
Any help to resolve this issue is appreciated.
Share Improve this question edited Oct 30, 2017 at 18:18 asaaki 2,00019 silver badges23 bronze badges asked Oct 30, 2017 at 17:06 Nicholas GrahamNicholas Graham 9487 silver badges12 bronze badges2 Answers
Reset to default 6This is a known issue and there is an issue raised in github for this.
https://github./angular/angular-cli/issues/7984
Try below mands:
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@latest
After these steps:
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@latest
Do:
npm install @schematics/angular
And then:
ng new appname
本文标签: javascript39ng new myapp39 errorStack Overflow
版权声明:本文标题:javascript - 'ng new my-app' error - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742226107a2436346.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论