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

yarn add @types/YYY@npm:@types/XXX does not work #4353

Open
xaviergonz opened this issue Sep 8, 2017 · 6 comments
Open

yarn add @types/YYY@npm:@types/XXX does not work #4353

xaviergonz opened this issue Sep 8, 2017 · 6 comments

Comments

@xaviergonz
Copy link

xaviergonz commented Sep 8, 2017

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

@BYK
Copy link
Member

BYK commented Sep 8, 2017

Hey @xaviergonz, thanks for the report! I'm having difficulty understanding what yarn add @npm: means. How is this used, is that a complete example? Can you give more details about what exactly are you running?

@xaviergonz
Copy link
Author

xaviergonz commented Sep 8, 2017 via email

@arcanis
Copy link
Member

arcanis commented Sep 8, 2017

I kinda remember seeing @kittens mention a different syntax to do what you want, but I don't remember where.

@xaviergonz
Copy link
Author

I just realized that markdown ate down all my @ characters the issue :) Fixed it

@rally25rs
Copy link
Contributor

This sounds like we just don't support a command line syntax that NPM has. Marking this as a compatibility feature request.

@sheerun
Copy link
Contributor

sheerun commented Jan 11, 2018

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"

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

5 participants