bower: 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 <space #tab> 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 anyway can fix this?

Thanks

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 21 (2 by maintainers)

Commits related to this issue

Most upvoted comments

renaming bower.json name without space solve the problem.

 {
    "name": "without-space",
    // your dependencies
  }

maybe remove bower_components?

TRY THIS bower install --verbose --force

This is just warning from bower. open your bower.json file and rename the “name” tag to get rid of this. It is recommended to have lowercase and digit. Special characters allowed are dot and dash.

@slavikgreen It can’t have and capitalization anymore…

Leaving some feedbacks for others encountering this bug.

Updating from 1.7.2 -> 1.7.9 and having my package named madhouse/messenger hosted in a private (bitbucket).

{
  "name": "madhouse/messenger",
  ...
}

I was unable to run bower install anymore. Bower was just printing this warning and just exits right after that:

vagrant@ubuntu:/vagrant/sites/osclass/oc-content/plugins/madhouse_messenger$ bower install
bower                     invalid-meta The "name" is recommended to be lowercase, can contain digits, dots, dashes

As suggested above, clearing the bower_components/ folder fixed it. 😃