ValueError: "@jupyter-widgets/jupyterlab-manager" is not a valid npm package
See original GitHub issueI am trying to run the following powershell command in Windows 10:
jupyter labextension install @jupyter-widgets/jupyterlab-manager
The ValueError
in the subject-line is raised. Below are some relevant version numbers from my Anaconda installation:
- python 3.6.4 64-bit
- conda 4.3.34
- notebook 5.4.0
- ipywidgets 7.1.2
- jupyter 1.0.0
- jupyterlab 0.31.8
- npm 1.4.12
- nodejs 8.9.1
and here is the output after using the --debug
option:
PS C:\Users\jeschwar> jupyter labextension install @jupyter-widgets/jupyterlab-manager --debug
> C:\Anaconda3_64bit\Scripts\npm.CMD pack @jupyter-widgets/jupyterlab-manager
npm ERR! addLocal Could not install jupyter-widgets/jupyterlab-manager
npm ERR! Error: ENOENT: no such file or directory, stat 'C:\Users\jeschwar\AppData\Local\Temp\tmpusxl33eq\jupyter-widgets\jupyterlab-manager'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 10.0.10586
npm ERR! command "C:\\Anaconda3_64bit\\node.exe" "C:\\Anaconda3_64bit\\Library\\lib\\node_modules\\npm\\bin\\npm-cli.js" "pack" "@jupyter-widgets/jupyterlab-manager"
npm ERR! cwd C:\Users\jeschwar\AppData\Local\Temp\tmpusxl33eq
npm ERR! node -v v8.9.1
npm ERR! npm -v 1.4.12
npm ERR! path C:\Users\jeschwar\AppData\Local\Temp\tmpusxl33eq\jupyter-widgets\jupyterlab-manager
npm ERR! syscall stat
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\jeschwar\AppData\Local\Temp\tmpusxl33eq\npm-debug.log
npm ERR! not ok code 0
Traceback (most recent call last):
File "C:\Anaconda3_64bit\lib\site-packages\jupyterlab\labextensions.py", line 71, in start
ans = self.run_task()
File "C:\Anaconda3_64bit\lib\site-packages\jupyterlab\labextensions.py", line 100, in run_task
for arg in self.extra_args
File "C:\Anaconda3_64bit\lib\site-packages\jupyterlab\labextensions.py", line 100, in <listcomp>
for arg in self.extra_args
File "C:\Anaconda3_64bit\lib\site-packages\jupyterlab\commands.py", line 210, in install_extension
return handler.install_extension(extension)
File "C:\Anaconda3_64bit\lib\site-packages\jupyterlab\commands.py", line 347, in install_extension
info = self._install_extension(extension, tempdir)
File "C:\Anaconda3_64bit\lib\site-packages\jupyterlab\commands.py", line 1095, in _install_extension
info = self._extract_package(extension, tempdir)
File "C:\Anaconda3_64bit\lib\site-packages\jupyterlab\commands.py", line 1135, in _extract_package
raise ValueError(msg % source)
ValueError: "@jupyter-widgets/jupyterlab-manager" is not a valid npm package
Errored, use --debug for full output:
ValueError: "@jupyter-widgets/jupyterlab-manager" is not a valid npm package
I realize the output says to create an issue in npm/npm
but I thought I would start here because everything works fine when I tried this in Linux including the ipywidgets displaying correctly in JupyterLab.
Is this extension currently supported in Windows 10?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Jupyter Extension Installs Fail as Not Valid NPM Package
I think you can try jupyter labextension install "@jupyter-widgets/jupyterlab-manager" first. If it does not work.
Read more >@jupyter-widgets/jupyterlab-manager - npm
Start using @jupyter-widgets/jupyterlab-manager in your project by running ... TypeScript icon, indicating that this package has built-in type declarations.
Read more >Unable to install matplotlib - Python Forum
ValueError : "jupyter-matplotlib" is not a valid npm package command : jupyter labextension install @jupyter-widgets/jupyterlab-manager
Read more >Issues: ValueError: "@jupyterlab/statusbar" is not a valid ...
Hi everyone, I got a ' "ValueError: “@jupyterlab/statusbar” is not a valid extension: ' error when i send a 'pip3 install jupyter ...
Read more >bloomberg/bqplot - Gitter
ValueError : "/Users/maded/dev/bqplot" is not a valid npm package ... @jupyter-widgets/jupyterlab-manager @jupyter-widgets/jupyterlab-manager v0.35.0 enabled ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It looks like the relevant line is:
Does that directory exist? Huh - why does it not have the
@
? Perhaps in windows things need to be quoted? I think@
may be a comment character?Can you try
jupyter labextension install "@jupyter-widgets/jupyterlab-manager"
?Face the same error message, and got it works using sudo: