question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Github tarball dependency specification isn't supported by any available resolver

See original GitHub issue
  • I’d be willing to implement a fix

Description: yarn@2.0.0-rc.28 errors with

➤ YN0001: │ Error: ember-cli-deploy-s3@https://github.com/ember-cli-deploy/ember-cli-deploy-s3/tarball/v1.3.0 isn't supported by any available resolver

when attempting to yarn install in a project which has https://github.com/ember-cli-deploy/ember-cli-deploy-s3/tarball/v1.3.0 as a dependency.

Perhaps the github pattern regex isn’t catching this declaration correctly?

To Reproduce:

{
  "dependencies": {
    "ember-cli-deploy-s3": "https://github.com/ember-cli-deploy/ember-cli-deploy-s3/tarball/v1.3.0"
  }
}

Sherlock reproduction:

await expect(packageJsonAndInstall({
  dependencies: {
    [`ember-cli-deploy-s3`]: `https://github.com/ember-cli-deploy/ember-cli-deploy-s3/tarball/v1.3.0`,
  },
})).rejects.not.toThrow()

Screenshot:

Screenshot 2020-02-03 at 12 37 11

Environment:

  • OS: [macOS v10.15.3 (19D76)]
  • Node version [v10.15.0]
  • Yarn version [2.0.0-rc.28]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
deinicommented, Apr 24, 2020

@gund You can use one of the many supported formats. The closer to the one you are trying to use would be:

"dependencies": {
    "jquery-extendext": "git+ssh://git@github.com/mistic100/jQuery.extendext#0.1.1"
}

You can find other valid formats here.

A few of them might not work because the github username has a number, a PR to fix that is already open tho https://github.com/yarnpkg/berry/pull/1220

0reactions
paul-soporancommented, May 8, 2020

@redblue9771, @armarti, @gund Your problems aren’t related to this issue (Which is specifically about the GitHub /tarball/ URLs) and each one of them is different. Please open a new issue for each one of your problems.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug] Cannot install package from github branch · Issue #835
Describe the bug Cannot install package from github branch $ yarn add ... /tarball/EXIT_ON_PARSE isn't supported by any available resolver.
Read more >
New resolver downloads hundreds of different package ...
1 and suddenly in a big project with a very long dependency list (over 60 packages), pip does not manage anymore to install...
Read more >
yarn install fails if package.json contains local tarball ... - GitHub
$ yarn yarn install v0.20.3 info No lockfile found. [1/4] Resolving packages... error An unexpected error occurred: "https:/registry.yarnpkg.com ...
Read more >
New resolver: Build automated testing to check for acceptable ...
The new resolver is generally slower because it checks the dependency between packages more rigorously, and tries to find alternative solutions ...
Read more >
Extracting the tar content of undefined failed #6312 - GitHub
The occurrence of this error is the challenging part. It does not always fail and does not always fail with the same dependency....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found