Skip to content

Get an error when I try to install a package with a tag [Bug] #1267

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

Closed
1 task
dxvladislavvolkov opened this issue Apr 29, 2020 · 1 comment · Fixed by #1271
Closed
1 task

Get an error when I try to install a package with a tag [Bug] #1267

dxvladislavvolkov opened this issue Apr 29, 2020 · 1 comment · Fixed by #1271
Labels
bug Something isn't working reproducible This issue can be successfully reproduced

Comments

@dxvladislavvolkov
Copy link

  • I'd be willing to implement a fix

Describe the bug

I try to install a package with a tag and get an error after it.
It happens with a 2.0.0-rc.27 version. It seems like a regression.

YN0001: │ Error: [email protected] isn't supported by any available resolver

To Reproduce

Reproduction
1. yarn init
2. yarn add devextreme@19.2-stable

Screenshots

Environment if relevant (please complete the following information):

  • OS: OSX
  • Node version v12.16.1
  • Yarn version 2.0.0-rc.27

Additional context

Add any other context about the problem here.

@dxvladislavvolkov dxvladislavvolkov added the bug Something isn't working label Apr 29, 2020
@paul-soporan
Copy link
Member

Sherlock Reproduction

Playground

const installPromise = packageJsonAndInstall({

dependencies: {

[`devextreme`]: `19.2-stable`,

},

});



await expect(installPromise)

.resolves.toBeTruthy();

Output:

Error: �[2mexpect(�[22m�[31mreceived�[39m�[2m).�[22mresolves�[2m.�[22mtoBeTruthy�[2m()�[22m

Received promise rejected instead of resolved
Rejected to value: �[31m[Error: Command failed: /usr/local/bin/node /sandbox/berry/scripts/actions/../run-yarn.js install·�[39m
�[31m➤ YN0000: ┌ Resolution step�[39m
�[31m➤ YN0001: │ Error: [email protected] isn't supported by any available resolver�[39m
�[31m    at MultiResolver.getResolverByDescriptor (/sandbox/berry/packages/yarnpkg-core/sources/MultiResolver.ts:67:13)�[39m
�[31m    at MultiResolver.getResolverByDescriptor [as bindDescriptor] (/sandbox/berry/packages/yarnpkg-core/sources/MultiResolver.ts:31:27)�[39m
�[31m    at bindDescriptor (/sandbox/berry/packages/yarnpkg-core/sources/Project.ts:775:34)�[39m
�[31m➤ YN0000: └ Completed�[39m
�[31m➤ YN0000: Failed with errors in 0.04s�[39m
�[31m]�[39m
at expect (/sandbox/node_modules/expect/build/index.js:138:15)
at module.exports (evalmachine.<anonymous>:8:7)
at executeInTempDirectory (/sandbox/node_modules/@arcanis/sherlock/lib/executeRepro.js:56:19)
at executeInTempDirectory (/sandbox/node_modules/@arcanis/sherlock/lib/executeRepro.js:17:22)
at executeRepro (/sandbox/node_modules/@arcanis/sherlock/lib/executeRepro.js:24:18)
at module.exports../pages/api/sherlock.js.__webpack_exports__.default (/sandbox/.next/server/static/development/pages/api/sherlock.js:140:122)
at Object.apiResolver (/sandbox/node_modules/next/dist/next-server/server/api-utils.js:46:15)
at process._tickCallback (internal/process/next_tick.js:68:7)

@paul-soporan paul-soporan added the reproducible This issue can be successfully reproduced label Apr 30, 2020
paul-soporan added a commit to paul-soporan/berry that referenced this issue Apr 30, 2020
arcanis pushed a commit that referenced this issue Apr 30, 2020
* fix(plugin-npm): fix tag regex

Fixes #1267.

* chore(release-workflow): set releases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working reproducible This issue can be successfully reproduced
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants