Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 757
ssuhat Avatar asked Apr 09 '16 03:04

ssuhat


2 Answers

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",
    ...
}
like image 173
Linh Pham Avatar answered Nov 13 '22 22:11

Linh Pham


You can also use the force option :

bower install --verbose --force
like image 21
Dimitri MASSA Avatar answered Nov 13 '22 21:11

Dimitri MASSA