Error when creating new project with Angular-CLI 6.1.2

后端 未结 6 848
[愿得一人]
[愿得一人] 2020-12-16 14:26

I tried creating a new Angular project using ng new angular-6-boilerplate but I can\'t do it anymore with angular-cli latest version. I\'m using terminal for wi

相关标签:
6条回答
  • 2020-12-16 14:40

    Number at the end also does not work.

    I had to change from

    ng new Chapter-4

    to

    ng new Chapter4

    0 讨论(0)
  • 2020-12-16 14:45

    Do not include any special characters. You can use the hyphen ( - ) instead of it.

    0 讨论(0)
  • 2020-12-16 14:54

    Don't use _ (underscore) sign, use minus - (minus) sign.

    For Example:

    Wrong code:

    ng new naytiv_admin_fe

    Right code:

    ng new naytiv-admin-fe

    0 讨论(0)
  • 2020-12-16 14:57

    No Snakecase.

    Watch out for underscores as well (not just lone numbers).

    ng new my_fantastic_app
    

    Is an invalid name.

    And of course as other people have already say , be careful for Lone numbers between dashes

    0 讨论(0)
  • 2020-12-16 14:59

    Melchia is correct.

    But to be more specific, the problem is the lone number between the dashes.

    This will also work:

    ng new angular6-boilerplate
    
    0 讨论(0)
  • 2020-12-16 15:04

    Do not include project name special characters or numbers. Try the following:

    $ ng new angular-boilerplate
    

    I did some research & found out that this comes from the schema responsible of creating new Angular applications Link Here

    0 讨论(0)
提交回复
热议问题