ssuhat
ssuhat

Reputation: 7656

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?

Upvotes: 27

Views: 23891

Answers (3)

Faisal Raza
Faisal Raza

Reputation: 1587

It is just a warning from bower. In bower.json, you just need to update the "name" value to lowercase and without a space. The name can contain dot ., hyphen -, underscore _ and digits ie, your-package1-name.

{
  "name": "your-package1-name",
  // your dependencies
}

Upvotes: 0

Dimitri MASSA
Dimitri MASSA

Reputation: 303

You can also use the force option :

bower install --verbose --force

Upvotes: 21

Linh Pham
Linh Pham

Reputation: 3025

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",
    ...
}

Upvotes: 43

Related Questions