labextension install command has problem with custom basic auth yarn registry #9945
Description
Description
At our workspace we use custom yarn registry which requires basic auth. We don't specify user:password in the registry url in our custom .yarnrc, and the basic auth credentials are in .npmrc. This setup's been working for normal npm/yarn commands outside jupyterlab.
When we run "jupyter labextension install xxx", we get error like Failed to fetch package metadata for 'xxx': <HTTPError 404: ''>
, while the extension actually gets install by yarn/npm. Looks like on the python side there is some additional logic in jupyterlab.commands module that tries to get package metadata from the registry
jupyterlab/jupyterlab/commands.py
Line 2339 in f30583a
As mentioned we see the issue does not really prevent the extension from being installed, probably because that jupyterlab.commands's logic is separate from the logic that really installs the extension via yarn. But I wonder what the use is of this jupyterlab.commands logic, and if jupyterlab can support basic auth yarn registry.
Context
- JupyterLab version: 3.0.10