Skip to content
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

"yarn init" allows "Name" to contain a space, but if Name contains a space, "yarn add" breaks #1695

Closed
semitrivial opened this issue Nov 5, 2016 · 1 comment

Comments

@semitrivial
Copy link

I did "yarn init" and set my project's name to something like "Foo Bar".

Then I did "yarn add webpack".

I got an error about the name containing an illegal character.

Changing the name to "FooBar" allowed me to "yarn add webpack".

If spaces are illegal in Name, then "yarn init" should refuse Name with spaces.

Better yet, allow "yarn add" to work when Name has a space.

Beautiful project, btw, loving it so far 👍

@wyze
Copy link
Member

wyze commented Nov 5, 2016

Duplicate of #1268 and fixed by #1425.

@wyze wyze closed this as completed Nov 5, 2016
@wyze wyze added the duplicate label Nov 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants