Hello
I’m trying to install a small Lab-extenstion in an “air-gapped” environment. I’ve updated the .npmrc with a hosted registry and disabled self-update-check for yarn. But yarn seems to still want to go to “registry.yarnpkg.com” in the “Preparing metadata” step, which it fails to do. See log below.
Is there some other setting that I have missed?
Only run “yarn install” works fine when the self-check is disabled.
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [45 lines of output]
INFO:hatch_jupyter_builder.utils:Running jupyter-builder
INFO:hatch_jupyter_builder.utils:Building with hatch_jupyter_builder.npm_builder
INFO:hatch_jupyter_builder.utils:With kwargs: {'build_cmd': 'build:prod', 'npm': ['jlpm']}
INFO:hatch_jupyter_builder.utils:Installing build dependencies with npm. This may take a while...
INFO:hatch_jupyter_builder.utils:> /tmp/pip-build-env-i32z_peg/overlay/bin/jlpm install
➤ YN0000: ┌ Resolution step
➤ YN0001: │ RequestError: getaddrinfo ENOTFOUND registry.yarnpkg.com
at ClientRequest.<anonymous> (/tmp/pip-build-env-i32z_peg/overlay/lib/python3.11/site-packages/jupyterlab/staging/yarn.js:195:14340)
at Object.onceWrapper (node:events:629:26)
at ClientRequest.emit (node:events:526:35)
at o.emit (/tmp/pip-build-env-i32z_peg/overlay/lib/python3.11/site-packages/jupyterlab/staging/yarn.js:190:90286)
at TLSSocket.socketErrorListener (node:_http_client:495:9)
at TLSSocket.emit (node:events:514:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)