WebStorm: New AngularCli Project: Error: directory should match format “path”

后端 未结 4 1677
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-18 09:16

When I try to create a new Angular Cli project:

receive this message (in Run window) after a few seconds after executing <

相关标签:
4条回答
  • 2021-01-18 09:21

    I have this issue, But I got a solution which is works for me is:

    New project names must start with a letter, and must contain only alphanumeric characters or dashes. When adding a dash the segment after the dash must also start with a letter.

    Invalid- new_something

    Valid- new-something

    0 讨论(0)
  • 2021-01-18 09:34

    it's a known cli 1.7.x issue - https://github.com/angular/angular-cli/issues/9655; unfortunately we have been unable to fix it on our end so far... We are working with Angular team on this, please follow WEB-31291 for updates. As a workaround, you can try creating new angular app in terminal using ng new <project_name> and then opening the generated project folder in WebStorm

    0 讨论(0)
  • 2021-01-18 09:36

    Do not include project name special characters. for example this is wrong: www_testProject.

    This is correct: wwwTestProject

    0 讨论(0)
  • 2021-01-18 09:36

    According to my last test, there is no problem. I upgraded my tools (Angular CLI v7.1.4 and WebStorm v2018.3.2):

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