Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

Support yarn berry #68

Open
skaindl opened this issue Oct 21, 2020 · 0 comments
Open

Support yarn berry #68

skaindl opened this issue Oct 21, 2020 · 0 comments
Labels
help wanted Extra attention is needed Needs Review

Comments

@skaindl
Copy link

skaindl commented Oct 21, 2020

When using yarn berry (yarn 2.x), the yarn install command fails because yarn reserves all environment variables prefixed with YARN_ for its own configuration:

---> Using 'yarn install' with YARN_ARGS
(node:293) ExperimentalWarning: The dns.promises API is experimental
(node:293) ExperimentalWarning: The fs.promises API is experimental
Usage Error: Unrecognized or legacy configuration settings found: enabled - run "yarn config -v" to see the list of settings supported in Yarn (in <environment>)

$ yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds]
subprocess exited with status 1

So having the environment variable YARN_ENABLED, YARN_BUILD, or YARN_ARGS specified causes the build to fail. Please add a custom prefix all environment variables that begin with YARN_.

@lholmquist lholmquist added help wanted Extra attention is needed Needs Review labels Nov 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed Needs Review
Projects
None yet
Development

No branches or pull requests

2 participants