Install error - yarn network connection
See original GitHub issueI am behind a corporate proxy. However, I have all of my proxy and ssl settings set up in ~/.npmrc
and ~/.yarnrc
, and use npm
to install things all the time.
I’ve installed various other labextensions with no problem, but jupyterlab-git extension fails when I install it using jupyter labextension install @jupyterlab/git
or if I clone and install directly. It always fails at:
Building jupyterlab assets (build:prod:minimize)
> node /u/dramsoft/miniconda3/envs/jupyterhub/lib/python3.7/site-packages/jupyterlab/staging/yarn.js install --non-interactive
yarn install v1.19.0
[1/5] Validating package.json...
[2/5] Resolving packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error Couldn't find package "nbdime@~5.0.1" required by "@jupyterlab/git@file:../extensions/jupyterlab-git-0.8.2.tgz" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
npm dependencies failed to install
Traceback (most recent call last):
File "/u/dramsoft/miniconda3/envs/jupyterhub/lib/python3.7/site-packages/jupyterlab/debuglog.py", line 47, in debug_logging
yield
File "/u/dramsoft/miniconda3/envs/jupyterhub/lib/python3.7/site-packages/jupyterlab/labextensions.py", line 105, in start
core_config=self.core_config)
File "/u/dramsoft/miniconda3/envs/jupyterhub/lib/python3.7/site-packages/jupyterlab/commands.py", line 378, in build
command=command, clean_staging=clean_staging)
File "/u/dramsoft/miniconda3/envs/jupyterhub/lib/python3.7/site-packages/jupyterlab/commands.py", line 574, in build
raise RuntimeError(msg)
RuntimeError: npm dependencies failed to install
Exiting application: jupyter
Whenever I search for yarn installation problems, the solution always seems to increase the network-timeout. I’ve done that in ~/.yarnrc
, but I don’t think it’s taking effect. I updated site-packages/jupyterlab/staging/.yarnrc
, and confirmed this .yarnrc was being copied into the jupyter/lab/staging
area, but again, same error.
I can run standalone npm
and download the nbdime
package that is failing in yarn.
So what other settings can I change, or can I force to install with npm instead of yarn?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top GitHub Comments
@fcollonval - i am using the
jlpm
bundled in JupyterLab, and it is 1.15.2. The 1.19.0 you were seeing was myyarn
version. Or, shouldjlpm
andyarn
be the same version…? Below is the yarn error when I runjlpm install
Thanks @marskar. I, too, downloaded
jupyterlab-git
and tried to install it from source, but I run into the same error when it tries to install dependencies.check this: conda install -c conda-forge nodejs. it might work