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

Packages in bower.json with "latest" or "bower install <package> --save"-version fails. #968

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

Comments

@kitsunde
Copy link

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

bug

What is the current behavior?

Yarn doesn't understand latest or the version bower install --save ads when it's from a git repo.

Latest:

{
  "name": "test",
  "authors": [
    "Kit Sunde <[email protected]>"
  ],
  "description": "",
  "main": "",
  "license": "MIT",
  "homepage": "",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "dependencies": {
    "jquery.transform.js": "latest"
  }
}

bower install jquery-transform --save:

{
  "name": "test",
  "authors": [
    "Kit Sunde <[email protected]>"
  ],
  "description": "",
  "main": "",
  "license": "MIT",
  "homepage": "",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "dependencies": {
    "jquery.transform.js": "jquery-transform#*"
  }
}

Both fails with Yarn:

$ yarn
yarn install v0.15.1
info No lockfile found.
[1/4] 🔍  Resolving packages...
error Couldn't find match for "jquery-transform" in "gh-pages,master,transformOrigin,transitionCompat" for "https://github.com/louisremi/jquery.transform.js.git".
info Visit http://yarnpkg.com/en/docs/cli/install for documentation about this command.

If I change the version to a branch like master it works.

What is the expected behavior?

It should behave like bower.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants