Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compability with Yarn 3 #20

Merged
merged 2 commits into from
Nov 10, 2022
Merged

Fix compability with Yarn 3 #20

merged 2 commits into from
Nov 10, 2022

Conversation

Dimava
Copy link
Contributor

@Dimava Dimava commented Nov 10, 2022

Yarn3 does not support --ignore-workspace-root-check

error log ``` C:\\node_modules\execa\lib\error.js:60 error = new Error(message); ^

Error: Command failed with exit code 1: yarn add --dev --ignore-workspace-root-check xo
Unknown Syntax Error: Unsupported option name ("--ignore-workspace-root-check").

$ yarn add [--json] [-E,--exact] [-T,--tilde] [-C,--caret] [-D,--dev] [-P,--peer] [-O,--optional] [--prefer-dev] [-i,--interactive] [--cached] [--mode #0] ...
at makeError (C:\node_modules\execa\lib\error.js:60:11)
at handlePromise (C:\node_modules\execa\index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async createXo (file:////node_modules/create-xo/index.js:97:4) {
shortMessage: 'Command failed with exit code 1: yarn add --dev --ignore-workspace-root-check xo',
command: 'yarn add --dev --ignore-workspace-root-check xo',
escapedCommand: 'yarn add --dev --ignore-workspace-root-check xo',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: '\x1B[31m\x1B[1mUnknown Syntax Error\x1B[22m\x1B[39m: Unsupported option name ("--ignore-workspace-root-check").\n' +
'\n' +
'$ yarn add [--json] [-E,--exact] [-T,--tilde] [-C,--caret] [-D,--dev] [-P,--peer] [-O,--optional] [--prefer-dev] [-i,--interactive] [--cached] [--mode #0] ...',
stderr: '',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}

</details>

@sindresorhus sindresorhus merged commit 37826ad into xojs:main Nov 10, 2022
sindresorhus added a commit that referenced this pull request Nov 10, 2022
@Dimava Dimava deleted the patch-1 branch November 10, 2022 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants