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.

npm is a piece of software which is quite possibly beyond repair. Yarn strikes me as a well-considered, sane piece of software. I ❤️ that yarn is deterministic, whereas npm install can produce different directory structures given different starting states.

I can think of three ways to use Yarn:

  • have make setup run npm install yarn then yarn;
  • rely on a globally installed yarn (as we currently do with npm); or
  • support NPM=/path/to/global/yarn make setup.

Does anyone have a preference for one of these three options?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Avaqcommented, Oct 21, 2016

It looks like yarn is quite similar to ied. Ied is a Nix-inspired package manager for NodeJS which has worked quite well for me. It seems to have all the same guarantees as yarn, and creates a completely flat structure using symlinks. However, it has no support for committing any kind of caches.

0reactions
davidchamberscommented, Feb 11, 2017

I’d be happy to do a PR if that’s the route we want to go.

I would like to see this! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started - Yarn
Yarn is a package manager for your code. It allows you to use and share (e.g. JavaScript) code with other developers from around...
Read more >
How To Install and Use the Yarn Package Manager for Node.js
Yarn is a package manager for Node.js that focuses on speed, security, and consistency. In this tutorial you will install Yarn globally, ...
Read more >
use-yarn - npm
Start using use-yarn in your project by running `npm i use-yarn`. There are 3 other projects in the npm registry using use-yarn.
Read more >
Yarn Package Manager - Learn How to use Yarn - YouTube
Learn how to use Yarn package manager for dependency and installation.
Read more >
Install and Use the Yarn Package Manager - Linode
Follow the steps for installing NPM in our How to Install and Use Node Package Manager (NPM) on Linux guide. · Install Yarn...
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