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

ng new does not create a new project

Open borisekm opened this issue 8 years ago • 3 comments

Cannot create a new project via ng new [project name]. Tested with cmd, powershell, git bash and Intellij Idea.

Versions

Windows 10 (10.0.16299.125) Angular CLI: 1.6.8 Node: 9.5.0 OS: win32 x64 Angular: ...

Repro steps

ng new angular_test

Observed behavior

Error message: Project name "angular_test" is not valid. 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.

Desired behavior

New project is created

Mention any other details that might be useful (optional)

I uninstalled and installed angular cli. Older version 1.6.1 works as expected.

borisekm avatar Feb 12 '18 10:02 borisekm

Isn't this simply because you used an underscore instead of a dash? '_' vs '-'

dkearsley89 avatar Feb 12 '18 10:02 dkearsley89

my bad 👎 (

borisekm avatar Feb 12 '18 10:02 borisekm

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.