-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 add @types/YYY@npm:@types/XXX does not work #4353
Comments
Hey @xaviergonz, thanks for the report! I'm having difficulty understanding what |
Useful for when you want multiple versions of libraries in a project. eg.
`yarn add lodash3@npm:lodash@^3 lodash4@npm:lodash@^4`.
Basically it is used to create package aliases
|
I kinda remember seeing @kittens mention a different syntax to do what you want, but I don't remember where. |
I just realized that markdown ate down all my |
This sounds like we just don't support a command line syntax that NPM has. Marking this as a compatibility feature request. |
Here is different example that doesn't work: yarn add next@npm:@sheerun/next@4.3.0-canary.8 --verbose I'd like alias "next" as "@sheerun/next@4.3.0-canary.8" |
Do you want to request a feature or report a bug?
bug report
What is the current behavior?
When running the command I get
error Received malformed response from registry for undefined. The registry may be down.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
If the current behavior is a bug, please provide the steps to reproduce.
yarn add @types/material-ui-old@npm:@types/material-ui
What is the expected behavior?
It should install the current version of the
@types/material-ui package
as@types/material-ui-old
Please mention your node.js, yarn and operating system version.
node 8.4.0, yarn 1.0.1, win 10 x64
The text was updated successfully, but these errors were encountered: