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.

Use `yarn` if available

See original GitHub issue

I started using yarn since the npm fiasco.

It’s a pain to remove dependencies installed after npm install & then manually doing yarn.

I think it would be much nice if yarn is used if it’s installed or just give me an option prisma2 init example --yarn so that I can directly install using yarn.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
sidharthachatterjeecommented, Aug 30, 2019

Hello from Gatsby! Here is how we handle this:

  • We ask the user to pick a preferred package manager on first run and persist that in ~/.config
  • We include lock files for both in official starters and delete the appropriate one on gatsby new ...

This is at https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-cli/src/init-starter.js#L30

2reactions
divyenduzcommented, Dec 13, 2019

This is done in the latest preview. npm install -g prisma2

Read more comments on GitHub >

github_iconTop Results From Across the Web

yarn install
yarn install · If yarn.lock is present and is enough to satisfy all the dependencies listed in package.json , the exact versions recorded...
Read more >
How to Force Use Yarn or NPM - freeCodeCamp
In this short post, I'm going to show you how to prevent the usage of npm or yarn, depending on your needs. This...
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 >
Install and Use the Yarn Package Manager - Linode
The Yarn package manager uses the NPM registry, so it has access to all of the packages available through NPM. Yarn's commands are...
Read more >
npm, pnpm, and Yarn | WebStorm Documentation - JetBrains
With WebStorm, you can choose whether to use npm, Yarn, Yarn 2, or pnpm in a project. ... Showing the range of available...
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