Bower update return me invalid-meta The "name" is recommended to be lowercase, can contain digits, dots, dashes

ssuhat picture ssuhat · Apr 9, 2016 · Viewed 21.4k times · Source

I've tried to remove my installed last package that make my bower like that. But still no luck.
Looks like when I'm install my last package it I mistakenly paste an tab character:

bower install               angular-input-stars-directive

Now every time I bower update it always return me this error even on my other project:

bower invalid-meta The "name" is recommended to be lowercase, can contain digits, dots, dashes

I've tried bower cache clean and reinstall the bower but still no luck.
Is there any way to fix this?

Answer

Linh Pham picture Linh Pham · Apr 11, 2016

Check inside your bower.json.

{
    "name": "package NAME",
    ...
}

replace all uppercase characters for name property to lowercase. And replace "space" character with either - (minus) or _ (underscore).

{
    "name": "package-name",
    ...
}