Skip to content

How to run yarn install on CI without --immutable #3486

Answered by merceyz
segrey asked this question in Q&A
Discussion options

You must be logged in to vote

There are a multiple options here so I'll list them

  • You can pass the --no-immutable flag to turn it off for the install command
yarn install --no-immutable
YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn
  • Or you can disable it in the .yarnrc.yml config
yarn config set enableImmutableInstalls false

Could you please point me out to code that calculates --immutable default value?

It's based on ci-info detecting a CI here

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@wajeehmisbahkhan
Comment options

Answer selected by segrey
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cmoulliard
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #3485 on September 24, 2021 11:04.