Replies: 2 comments
-
#49407 was merged |
Beta Was this translation helpful? Give feedback.
0 replies
-
Guys it does not work, it does not install yarn properly. I am always getting yarn classic vs yarn berry |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
--use-yarn
flag tocreate-next-app
, similar to--use-npm
and--use-pnpm
.Non-Goals
No response
Background
In Create Next Stack, I currently have to fake the npm config user agent in order to force an install with Yarn.
Code in question is here: https://github.com/akd-io/create-next-stack/blob/develop/packages/create-next-stack/src/main/plugins/next.ts#LL84C29-L84C29
The reasoning for requesting support for
--use-yarn
is well described in the code. I quote:That is,
yarn create next-app
isn't as powerful asnpx create-next-app
, so we need to call it usingnpx
. Butcreate-next-app
does not support--use-yarn
, so we hack it by callingcreate-next-app
with a fake npm config user agent.Proposal
Steps:
--use-yarn
flagI am providing the following PR: #49407
Beta Was this translation helpful? Give feedback.
All reactions