Extraneous positional argument error (Yarn) when using JupyterLab

Viewed 14

When I run

jupyter lab

I get

Fail to get yarn configuration. Unknown Syntax Error: Extraneous positional argument ("list").

$ yarn config [-v,--verbose] [--why] [--json]

This is new to me (I've been using jupyter for years without issues) and seems to have started after I switched to Yarn Modern with

yarn set version berry

I thought perhaps that the issue might be the presence of

nodeLinker: pnp

in my .yarnrc.yml but replacing that with

nodeLinker: node-modules

doesn't fix anything.

FWIW, .yarnrc.yml also has

yarnPath: .yarn/releases/yarn-3.2.3.cjs

How do I fix this fatal error?

0 Answers
Related