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

Support yarn as an alternative to npm #195

Open
henderea opened this issue Oct 12, 2016 · 9 comments · May be fixed by #343
Open

Support yarn as an alternative to npm #195

henderea opened this issue Oct 12, 2016 · 9 comments · May be fixed by #343

Comments

@henderea
Copy link

Yarn is a new package manager I've heard about recently (apparently announced Oct 11, yesterday at the time I'm writing this issue), and I was hoping npm-check would add support for installing via yarn. The website is https://yarnpkg.com/.

I may be wrong on this, but it seems as though yarn doesn't support global package installs. You might want to check into that and ignore the flag or whatever you use for specifying yarn install when the user is doing a global npm-check.

@joeframbach
Copy link

To install globally with yarn:

yarn global add packagename

@henderea
Copy link
Author

Cool. I haven't actually started using yarn, but I was looking at it some and was considering trying it out. I figured I probably wouldn't be the only one who wanted to use npm-check with yarn, so since there wasn't already an issue for adding support, I figured I would put one in.

@vinnymac
Copy link
Contributor

vinnymac commented Oct 26, 2016

Support may not be necessary if they build their own updating solution similar to npm-check.

Looks like work has already begun.
yarnpkg/yarn#1444

@calvinf
Copy link

calvinf commented Dec 3, 2016

yarn upgrade-interactive is now part of yarn. You can probably resolve this issue.

@estaub
Copy link

estaub commented Mar 10, 2017

Note that yarn doesn't support detection of unused dependencies, and AFAICT it isn't on their radar.

@jahed
Copy link

jahed commented Sep 20, 2017

If you're using save-exact, yarn upgrade-interactive doesn't show updates while npm-check does (this is a good thing).

@eug48
Copy link

eug48 commented Dec 27, 2017

With save-exact one can use yarn upgrade-interactive --latest, but the unused dependencies feature is quite valuable

@kjr247
Copy link

kjr247 commented Sep 17, 2018

I love this tool too much! Does yarn currently do everything that npm-check does? If so I can just drop this tool. DX I hope it isn't the case, and we can support yarn as an alt option here.

I can imagine it not being too much work to add a parameter somewhere that says use yarn instead of npm for the update strategy.

@rmlzy
Copy link

rmlzy commented May 21, 2019

Anyone who has the same problem please check yarn upgrade-interactive .

@vladimyr vladimyr linked a pull request Jun 5, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants