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 completes the bower install but creates a lockfile without versions. #846

Closed
kitsunde opened this issue Oct 12, 2016 · 1 comment
Closed

Comments

@kitsunde
Copy link

Do you want to request a feature or report a bug?

bug

What is the current behavior?

I have the following bower.json:

{
  "name": "jaguar",
  "version": "0.0.0",
  "private": true,
  "dependencies": {
    "bootstrap": "~3.3.5",
    "devicejs": "2ae5c775e35ccc837589e5af34e292c54936778c",
    "jquery": "2.1.3",
    "jquery-transform": "e195b9a7118558bb1141e50b80380ea5f31dffb8",
    "moment": "2.14.1",
    "moment-timezone": "0.5.5",
    "owl-carousel2": "2.0.0-beta.2.4",
    "raven-js": "3.5.1",
    "ua-parser-js": "0.7.10",
    "underscore": "1.8.3",
    "object-fit": "~0.4.2",
    "picturefill": "^3.0.2",
    "jquery-selectBox": "316c77f157cb25c7a6ea36822143ac9d97845067"
  },
  "resolutions": {
    "jquery": "2.1.3"
  }
}

I also have this .bowerrc:

{
  "directory": "static/bower_components"
}

I run

$ yarn
yarn install v0.15.1
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Rebuilding all packages...
success Saved lockfile.
✨  Done in 24.20s.

Successive runs fail:

$ yarn --force
yarn install v0.15.1
[1/4] 🔍  Resolving packages...
error Package "bootstrap@" doesn't have a "version".
info Visit http://yarnpkg.com/en/docs/cli/install for documentation about this command.

Looking at the lockfile it seems to not add version numbers:

bootstrap@~3.3.5:
  version ""
  resolved "https://github.com/twbs/bootstrap.git#0b9c4a4007c44201dce9a6cc1a38407005c26c86"
  registry bower
  dependencies:
    jquery "1.9.1 - 3"
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
bootstrap@~3.3.5:
  version ""
  resolved "https://github.com/twbs/bootstrap.git#0b9c4a4007c44201dce9a6cc1a38407005c26c86"
  registry bower
  dependencies:
    jquery "1.9.1 - 3"

[email protected]:
  name Element.closest
  version ""
  resolved "https://github.com/jonathantneal/closest.git#dc600e8129f5e073649c1552ca8b45f862037383"
  registry bower

devicejs@2ae5c775e35ccc837589e5af34e292c54936778c:
  name device.js
  version "0.1.61"
  resolved "https://github.com/matthewhudson/device.js.git#2ae5c775e35ccc837589e5af34e292c54936778c"
  registry bower

jquery-selectBox@316c77f157cb25c7a6ea36822143ac9d97845067:
  name jquery.selectBox
  version v1.2.0
  resolved "https://github.com/marcj/jquery-selectBox.git#316c77f157cb25c7a6ea36822143ac9d97845067"

jquery-transform@e195b9a7118558bb1141e50b80380ea5f31dffb8:
  name jquery.transform.js
  version "1.0.0"
  resolved "https://github.com/louisremi/jquery.transform.js.git#e195b9a7118558bb1141e50b80380ea5f31dffb8"
  registry bower
  dependencies:
    jquery "~1.7.2"

"jquery@>= 1.7.1", "[email protected] - 3":
  version ""
  resolved "https://github.com/jquery/jquery-dist.git#1b30f3ad466ebf2714d47eda34dbd7fdf6849fe3"
  registry bower

jquery@~1.7.2:
  version "1.7.2"
  resolved "https://github.com/jquery/jquery-dist.git#17eeebb3c04c72e5d00520c191cce858844aedec"
  registry bower

[email protected]:
  version "2.1.3"
  resolved "https://github.com/jquery/jquery-dist.git#8f2a9d9272d6ed7f32d3a484740ab342c02541e0"
  registry bower

[email protected]:
  version ""
  resolved "https://github.com/moment/moment-timezone.git#32ef9eff5781a7fa57f75a84caebedc905d2ab8a"
  registry bower
  dependencies:
    moment ">= 2.6.0"

"moment@>= 2.6.0":
  version ""
  resolved "https://github.com/moment/moment.git#986dba9497b7c173760d1d7bc85606c574ed2c44"
  registry bower

[email protected]:
  version ""
  resolved "https://github.com/moment/moment.git#227746b29044a4c2160ae7c597c7f24aacac2635"
  registry bower

object-fit@~0.4.2:
  version "0.4.2"
  resolved "https://github.com/anselmh/object-fit.git#92425743f94a23249a4ada58cdd3a481f813f11a"
  registry bower
  dependencies:
    closest "1.0.2"
    raf.js "0.0.4"

[email protected]:
  name owl.carousel
  version "2.0.0-beta.2.4"
  resolved "https://github.com/OwlFonk/OwlCarousel2.git#e5aa7762f8cc1650ce05e2eaa3d118b0ee867bee"
  registry bower
  dependencies:
    jquery ">= 1.7.1"

picturefill@^3.0.2:
  version ""
  resolved "https://github.com/scottjehl/picturefill.git#6d4062fe0a663167080b50f7665cdb26874f7510"
  registry bower

[email protected]:
  version "0.0.3"
  resolved "https://github.com/ngryman/raf.js.git#4dfe1c99359de06d5699ede282ea7052a193bbb4"
  registry bower

[email protected]:
  version "3.5.1"
  resolved "https://github.com/getsentry/raven-js.git#0184ca3bc7624be0fb0b093d9a96becc424bc9b5"
  registry bower

[email protected]:
  version "0.7.10"
  resolved "https://github.com/faisalman/ua-parser-js.git#fd39be3336e7e0c457ba12b3f9c43413eec2a32e"
  registry bower

[email protected]:
  version "1.8.3"
  resolved "https://github.com/jashkenas/underscore.git#e4743ab712b8ab42ad4ccb48b155034d02394e4d"
  registry bower

What is the expected behavior?

Yarn should generate a lockfile it can use.

Please mention your node.js, yarn and operating system version.

$ yarn --version
0.15.1
$ node --version
v6.3.1
$ sw_vers -productVersion
10.12
@sebmck
Copy link
Contributor

sebmck commented Oct 26, 2016

We've removed support for Bower, see #1441.

@sebmck sebmck closed this as completed Oct 26, 2016
@wyze wyze removed the needs triage label Nov 10, 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

3 participants