木星0.31.8
Ubuntu 14.04
实际3.0.0
我正在尝试安装扩展。
运行jupyter labextension install @jupyterlab/plotly-extension --debug将导致
> /usr/bin/npm pack @jupyterlab/plotly-extension
npm ERR! git clone git@github.com:jupyterlab/plotly-extension Cloning into bare repository '/home/ubuntu/.npm/_git-remotes/git-github-com-jupyterlab-plotly-extension-8ab9f472'...
npm ERR! git clone git@github.com:jupyterlab/plotly-extension Permission denied (publickey).
npm ERR! git clone git@github.com:jupyterlab/plotly-extension fatal: Could not read from remote repository.
npm ERR! git clone git@github.com:jupyterlab/plotly-extension
npm ERR! git clone git@github.com:jupyterlab/plotly-extension Please make sure you have the correct access rights
npm ERR! git clone git@github.com:jupyterlab/plotly-extension and the repository exists.
npm ERR! addLocal Could not install jupyterlab/plotly-extension
npm ERR! Error: ENOENT, stat 'jupyterlab/plotly-extension'
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 Linux 3.13.0-144-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "pack" "@jupyterlab/plotly-extension"
npm ERR! cwd /tmp/tmp0ce5jqp6
npm ERR! node -v v0.10.37
npm ERR! npm -v 1.4.28
npm ERR! path jupyterlab/plotly-extension
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/tmp0ce5jqp6/npm-debug.log
npm ERR! not ok code 0
Traceback (most recent call last):
File "/usr/local/anaconda3/lib/python3.5/site-packages/jupyterlab/labextensions.py", line 71, in start
ans = self.run_task()
File "/usr/local/anaconda3/lib/python3.5/site-packages/jupyterlab/labextensions.py", line 100, in run_task
for arg in self.extra_args
File "/usr/local/anaconda3/lib/python3.5/site-packages/jupyterlab/labextensions.py", line 100, in <listcomp>
for arg in self.extra_args
File "/usr/local/anaconda3/lib/python3.5/site-packages/jupyterlab/commands.py", line 210, in install_extension
return handler.install_extension(extension)
File "/usr/local/anaconda3/lib/python3.5/site-packages/jupyterlab/commands.py", line 347, in install_extension
info = self._install_extension(extension, tempdir)
File "/usr/local/anaconda3/lib/python3.5/site-packages/jupyterlab/commands.py", line 1095, in _install_extension
info = self._extract_package(extension, tempdir)
File "/usr/local/anaconda3/lib/python3.5/site-packages/jupyterlab/commands.py", line 1135, in _extract_package
raise ValueError(msg % source)
ValueError: "@jupyterlab/plotly-extension" is not a valid npm package
Errored, use --debug for full output:
ValueError: "@jupyterlab/plotly-extension" is not a valid npm package我尝试的是在这里找到的标准推荐,https://github.com/jupyterlab/jupyter-renderers/tree/master/packages/plotly-extension
我该怎么做才好呢?
发布于 2018-09-27 13:44:32
我尝试了很多事情后才开始工作。我的猜测是,这两件事中的一件(或两者兼而有之)是它起作用的原因:
1)升级到木星实验室0.34.12
2)使用以下两行安装nodejs:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - && \
apt-get install -y nodejs发布于 2019-01-30 18:24:36
尽管答案已被接受,但如果仍然存在任何问题并在代理连接后面,请尝试在npm配置中设置代理。
示例->
npm config set http-proxy=""
npm config set https-proxy=""https://stackoverflow.com/questions/51267124
复制相似问题