Yarn EPERM error on jupyter lab build

JupyterLab in a docker container based on jupyter/scipy-notebook:

After installing a Jupyter lab extension, I’m asked to run a jupyter lab build, that command fails with the following output (in a shell started from JupyterLab):

[LabBuildApp] Building in /opt/conda/share/jupyter/lab
[LabBuildApp] Node v12.4.0

[LabBuildApp] Yarn configuration loaded.
[LabBuildApp] Building jupyterlab assets (production, minimized)
[LabBuildApp] > node /opt/conda/lib/python3.9/site-packages/jupyterlab/staging/yarn.js install --non-interactive
[LabBuildApp] yarn install v1.21.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error An unexpected error occurred: "EPERM: operation not permitted, copyfile '/home/jovyan/.cache/yarn/v6/.tmp/4e956c8b1135fbddac0e781ec37878f4/.yarn-metadata.json' -> '/home/jovyan/.cache/yarn/v6/npm-nbdime-jupyterlab-2.1.1-1fc4935002837f527ca7307f8eb1af4682d84257/node_modules/nbdime-jupyterlab/.yarn-metadata.json'".