Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not a valid npm package #6992

Closed
ghost opened this issue Aug 12, 2019 · 4 comments
Milestone

Comments

@ghost
Copy link

@ghost ghost commented Aug 12, 2019

I just installed anaconda and installed nodejs as recommended in the documentation (conda install -c conda-forge nodejs).

However, any jupyter lab extension that I attempt to install returns the error that the extension is not a valid npm package. Any suggestions?

@jasongrout

This comment has been minimized.

Copy link
Contributor

@jasongrout jasongrout commented Aug 12, 2019

Can you give us step-by-step instructions to reproduce the error, and paste the error log here?

@ghost

This comment has been minimized.

Copy link
Author

@ghost ghost commented Aug 12, 2019

I open the Anaconda Prompt and complete the following:

(base) C:>jupyter labextension install jupyterlab-chart-editor@1.2
An error occured.
ValueError: "jupyterlab-chart-editor@1.2" is not a valid npm package
See the log file for details: C:\Users\xbbld4x\AppData\Local\Temp\jupyterlab-de
bug-3r4g7uo0.log

Error log:
Node v12.8.0

C:\Users\xbbld4x\AppData\Local\Continuum\anaconda3\npm.CMD pack jupyterlab-chart-editor@1.2
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to http://registry.npmjs.org/jupyterlab-chart-editor failed, reason: getaddrinfo ENOTFOUND proxy_host
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\xbbld4x\AppData\Roaming\npm-cache_logs\2019-08-12T16_02_27_295Z-debug.log

Traceback (most recent call last):

File "c:\users\xbbld4x\appdata\local\continuum\anaconda3\lib\site-packages\jupyterlab\debuglog.py", line 47, in debug_logging
yield

File "c:\users\xbbld4x\appdata\local\continuum\anaconda3\lib\site-packages\jupyterlab\labextensions.py", line 82, in start
ans = self.run_task()

File "c:\users\xbbld4x\appdata\local\continuum\anaconda3\lib\site-packages\jupyterlab\labextensions.py", line 103, in run_task
for arg in self.extra_args

File "c:\users\xbbld4x\appdata\local\continuum\anaconda3\lib\site-packages\jupyterlab\labextensions.py", line 103, in
for arg in self.extra_args

File "c:\users\xbbld4x\appdata\local\continuum\anaconda3\lib\site-packages\jupyterlab\commands.py", line 316, in install_extension
return handler.install_extension(extension)

File "c:\users\xbbld4x\appdata\local\continuum\anaconda3\lib\site-packages\jupyterlab\commands.py", line 517, in install_extension
info = self._install_extension(extension, tempdir)

File "c:\users\xbbld4x\appdata\local\continuum\anaconda3\lib\site-packages\jupyterlab\commands.py", line 1373, in _install_extension
info = self._extract_package(extension, tempdir)

File "c:\users\xbbld4x\appdata\local\continuum\anaconda3\lib\site-packages\jupyterlab\commands.py", line 1444, in _extract_package
raise ValueError(msg % source)

ValueError: "jupyterlab-chart-editor@1.2" is not a valid npm package

Exiting application: jupyter

@jasongrout

This comment has been minimized.

Copy link
Contributor

@jasongrout jasongrout commented Aug 12, 2019

Looks like the relevant part of the error is:

npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to http://registry.npmjs.org/jupyterlab-chart-editor failed, reason: getaddrinfo ENOTFOUND proxy_host
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'

Looks like you have network issues and npm isn't able to get out to the registry. Perhaps there are proxies in the way stopping the network connection?

@jasongrout jasongrout added this to the Reference milestone Aug 12, 2019
@ghost

This comment has been minimized.

Copy link
Author

@ghost ghost commented Aug 12, 2019

Yes, it was an issue with the connection because I am behind my company's firewall. Thank you for the help

@ghost ghost closed this Aug 12, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.