Creating a new project fails - ng new PROJECT-NAME
Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request
Command (mark with an x)
- [x] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Versions
Angular CLI: 7.0.2
Node: 8.11.1
OS: win32 x64
Package Version
------------------------------------------------------
@angular-devkit/architect 0.10.2
@angular-devkit/core 7.0.2
@angular-devkit/schematics 7.0.2
@schematics/angular 7.0.2
@schematics/update 0.10.2
rxjs 6.3.3
typescript 3.1.3
Repro steps
The log given by the failure
Schematic input does not validate against the Schema: {"name":"test"}
Errors:
Data path "" should have required property 'version'.
Desired functionality
A new project is created
Duplicate of #12690
Run "npm update" and after run "ng new your-project --version=7.3.6"
HI, This issue may be resolved by applying the following command in cmd.
npm i @schematics/angular@latest --save-dev
after applying this no need to write version after angular 7 project name just write ng new ang-project-name
For Online Angular Training please visit https://www.yogeshdotnet.com
HI, This issue may be resolved by applying the following command in cmd.
npm i @schematics/angular@latest --save-dev
after applying this no need to write version after angular 7 project name just write ng new ang-project-name
For Online Angular Training please visit https://www.yogeshdotnet.com
It's solved my issue. Thank you so much Sir
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.