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

"Couldn't find any versions for packagename that matches github.com/user/packagename.git. Possible versions: x.x.x[, x.x.x, etc]" #1532

Closed
chrismark opened this issue Oct 28, 2016 · 5 comments

Comments

@chrismark
Copy link

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

What is the current behavior?
Install a package using git remote url, git+https://git@github.com/Glench/fuzzyset.js.git.
Then install another package, moment.
Installation of moment fails (stops at Resolving packages...) and the error reads as:

error Couldn't find any versions for fuzzyset.js that matches github.com/Glench/fuzzyset.js.git. Possible versions: 0.0.1

Same thing happens if moment is installed using git+https://git@github.com/moment/moment.git. The next package to be installed fails and similar error appears about moment.

If the current behavior is a bug, please provide the steps to reproduce.

mkdir test6 && cd test6
yarn init
yarn add git+https://git@github.com/Glench/fuzzyset.js.git
yarn add moment

What is the expected behavior?
moment package should have installed fine.

Please mention your node.js, yarn and operating system version.
node v5.9.0
yarn 0.16.1
windows 10

@sebmck
Copy link
Contributor

sebmck commented Nov 1, 2016

Created #1589 to fix this, pending approval.

sebmck pushed a commit that referenced this issue Nov 1, 2016
@sebmck sebmck closed this as completed Nov 1, 2016
sebmck pushed a commit that referenced this issue Nov 1, 2016
@pconerly
Copy link

pconerly commented May 3, 2017

Today I had this problem using yarn v0.23.2 and yarn v0.23.4.

I was able to install a package from a github repo by doing:

yarn add https://github.com/picmonkey/rheostat/tarball/pm-master

@ccorcos
Copy link

ccorcos commented Oct 26, 2017

I'm still having issues with this.

❯❯❯ yarn add 'git+https://git@github.com:ccorcos/oy.git#0.10.1'
yarn add v1.2.1
warning package.json: License should be a valid SPDX license expression
warning notion-next: License should be a valid SPDX license expression
[1/4] 🔍  Resolving packages...
error Refusing to download the git repo {"hostname":"github.com","protocol":"https:","repository":"https://git@github.com/:ccorcos/oy.git"} over HTTPS without a commit hash - possible certificate error?
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
❯❯❯ yarn add 'git+https://git@github.com:ccorcos/oy.git'
yarn add v1.2.1
warning package.json: License should be a valid SPDX license expression
warning notion-next: License should be a valid SPDX license expression
[1/4] 🔍  Resolving packages...
error Refusing to download the git repo {"hostname":"github.com","protocol":"https:","repository":"https://git@github.com/:ccorcos/oy.git"} over HTTPS without a commit hash - possible certificate error?
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

@ccorcos
Copy link

ccorcos commented Oct 26, 2017

Ah, yarn add 'git+ssh://git@github.com:ccorcos/oy.git#0.10.1' worked

@softboy99

This comment has been minimized.

@yarnpkg yarnpkg locked as resolved and limited conversation to collaborators Feb 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants