Skip to content

"Project name "try-25" is not valid. New project names must start with a letter, and must contain only alphanumeric characters or dashes." #4232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JanStureNielsen opened this issue Jan 25, 2017 · 3 comments

Comments

@JanStureNielsen
Copy link

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Linux openSUSE 13.2

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

jan@linux-zd16:~/src/fm-repos/fm-ui> ng --version

                             _                           _  _
  __ _  _ __    __ _  _   _ | |  __ _  _ __         ___ | |(_)
 / _` || '_ \  / _` || | | || | / _` || '__|_____  / __|| || |
| (_| || | | || (_| || |_| || || (_| || |  |_____|| (__ | || |
 \__,_||_| |_| \__, | \__,_||_| \__,_||_|          \___||_||_|
               |___/
angular-cli: 1.0.0-beta.25.5
node: 6.9.1
os: linux x64
@angular/common: 2.4.4
@angular/compiler: 2.4.4
@angular/core: 2.4.4
@angular/forms: 2.4.4
@angular/http: 2.4.4
@angular/platform-browser: 2.4.4
@angular/platform-browser-dynamic: 2.4.4
@angular/router: 3.4.4
@angular/material: 2.0.0-beta.1
@angular/compiler-cli: 2.4.4

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

ng new try-25

Brand new project with the name try-25 which complies with the project name restrictions mentioned in the error message. So, either the error message is wrong, or there's a bug.

The log given by the failure.

Normally this include a stack trace and some more information.

Mention any other details that might be useful.


Thanks! We'll be in touch soon.

@beeman
Copy link
Contributor

beeman commented Jan 25, 2017

@JanStureNielsen the message is wrong and a fix is in place, that will be in the next release.

That being said, we're discussing wether or not we allow a name like this, and today I accidentally found a way around this check:

mkdir try-25
ng init

This will leave you with the project in the name you want it. Please note, this is not supported nor well-tested, it just occurred to me that it can be created this way.

@JanStureNielsen
Copy link
Author

JanStureNielsen commented Jan 26, 2017

Ahh, sorry, @beeman -- I should have searched first.

Duplicate of #3816.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants