angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Creating a new project fails - ng new PROJECT-NAME

Open fad250 opened this issue 8 years ago • 5 comments

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

fad250 avatar Oct 24 '18 12:10 fad250

Duplicate of #12690

alan-agius4 avatar Oct 24 '18 12:10 alan-agius4

Run "npm update" and after run "ng new your-project --version=7.3.6"

rafaelzuckerberg avatar Mar 26 '19 20:03 rafaelzuckerberg

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

yogeshdotnet avatar Apr 29 '19 02:04 yogeshdotnet

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

Rajeshpeyala avatar Jul 23 '19 09:07 Rajeshpeyala

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.