question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Replace NPM use by Yarn

See original GitHub issue

Basically, 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
jvillarfcommented, May 14, 2018

@ivanmalagon we have finally released the new onprem version, so this is no longer a blocker. Thanks for waiting for us.

0reactions
ivanmalagoncommented, May 14, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found