Replace NPM use by Yarn
See original GitHub issueBasically, after a quick test done by @rochoa, we checked that installing our dependencies took 30 seconds with yarn instead of ~120 using NPM.
Why?
Yarn is faster because it uses parallelization and caches every package.
Also it uses its own “shrinkwrap”, called yarn.lock
.
- Replace use of NPM and start using Yarn in:
- CI tests.
- Development environment: basically checks our grunt tasks.
- Staging environment: check deploys are correct, basically the grunt build task.
- Change all documentation, like CONTRIBUTING.
- Compare results from old (npm) to new (yarn).
- Migrate duplicated dependencies checker to new Yarn.lock*.
*About last bullet: we have a “checker” made by @rochoa and @javisantana (if I’m not wrong), where we check if the same dependency is used in other place with a different version. So, we should keep this checker but using the new yarn.lock
file instead of the npm-shrinkwrap.json
.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:15 (13 by maintainers)
Top Results From Across the Web
Migrating from npm - Yarn
Migrating from npm should be a fairly easy process for most users. Yarn can consume the same package.json format as npm, and can...
Read more >How to Migrate From NPM to Yarn - Maz Ahmadi
1) Delete NPM's Lock File. If you've ran NPM's install command in your project, you probably have a file called package-lock. · 2)...
Read more >Replacing npm with Yarn | Bugsnag Blog
Moving from npm to Yarn ... The migration process was extremely simple. Just run the yarn command and commit the resulting yarn.lock file....
Read more >How To Install and Use the Yarn Package Manager for Node.js
Yarn has a unique way of installing and running itself in your JavaScript projects. First you install the yarn command globally, then you...
Read more >To Yarn and Back (to npm) Again - Mixmax
npm doesn't have an equivalent to Yarn's yarn check , but it looks like some folks (like Airbnb) use npm ls >/dev/null to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ivanmalagon we have finally released the new onprem version, so this is no longer a blocker. Thanks for waiting for us.
We were waiting for OnPremises 2.2 to be officially released. We didn’t want to mess anything. OP 2.2 is still pending so this in on hold.