holoviz / pyviz_comms

Bidirectional communication for the HoloViz ecosystem
BSD 3-Clause "New" or "Revised" License
32 stars 15 forks source link

Not a valid npm package #40

Closed zxdawn closed 4 years ago

zxdawn commented 5 years ago

I try to install pyviz by:

jupyter labextension install @pyviz/jupyterlab_pyviz

But, I got this result:

Node v6.14.4

> /usr/bin/npm pack @pyviz/jupyterlab_pyviz
|DNS-request| registry.npmjs.org ng node@v6.14.4
|DNS-response|: registry.npmjs.org does not exist
npm: ../deps/uv/src/unix/getaddrinfo.c:92: uv__getaddrinfo_translate_error: Assertion `!"unknown EAI_* error code"' failed.

Errored, use --debug for full output:
ValueError: "@pyviz/jupyterlab_pyviz" is not a valid npm package

Version of jupyterlab:

# Name                    Version                   Build  Channel
jupyterlab                0.35.6                   py36_0    conda-forge
jbednar commented 5 years ago

It says "registry.npmjs.org does not exist", which looks to me like a temporary error due to a server being down; maybe try again?

zxdawn commented 5 years ago

It looks like I can't connect to the server in my university (China) ... Actually the log above is the result of proxychains jupyter labextension install @pyviz/jupyterlab_pyviz which uses the VPN.

Here's the original output of jupyter labextension install @pyviz/jupyterlab_pyviz:

Node v6.14.4

> /usr/bin/npm pack @pyviz/jupyterlab_pyviz
pyviz-jupyterlab_pyviz-0.7.2.tgz
Node v6.14.4

> node /home/xin/Software/miniconda3/envs/satpy/lib/python3.6/site-packages/jupyterlab/staging/yarn.js install
yarn install v1.9.4
info No lockfile found.
[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...
error An unexpected error occurred: "https://registry.yarnpkg.com/@jupyterlab%2fapplication: ETIMEDOUT".
info If you think this is a bug, please open a bug report with the information provided in "/home/xin/Software/miniconda3/envs/satpy/share/jupyter/lab/staging/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
> node /home/xin/Software/miniconda3/envs/satpy/lib/python3.6/site-packages/jupyterlab/staging/yarn.js run build
yarn run v1.9.4
$ webpack
/bin/sh: 1: webpack: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

But, the VPN works for google and other websites ... It looks strange.

philippjfr commented 5 years ago

What happens when you visit registry.npmjs.org in your browser?

zxdawn commented 5 years ago

What happens when you visit registry.npmjs.org in your browser?

This is the result:

{"db_name":"registry","doc_count":1259400,"doc_del_count":341,"update_seq":1989641,"purge_seq":0,"compact_running":false,"disk_size":19607470215,"data_size":14976509358,"instance_start_time":"1558518210488063","disk_format_version":6,"committed_update_seq":1989641}
philippjfr commented 5 years ago

This issue might help: https://github.com/jupyterlab/jupyterlab/issues/5071

zxdawn commented 5 years ago

This issue might help: jupyterlab/jupyterlab#5071

After killing all processes related to jupyter-lab, I still got the error.

philippjfr commented 4 years ago

This does not appear to be an issue with the extension itself, closing.