首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >jupyterlab/巧妙地-扩展不会安装

jupyterlab/巧妙地-扩展不会安装
EN

Stack Overflow用户
提问于 2018-07-10 13:53:49
回答 2查看 3.8K关注 0票数 1

木星0.31.8

Ubuntu 14.04

实际3.0.0

我正在尝试安装扩展。

运行jupyter labextension install @jupyterlab/plotly-extension --debug将导致

代码语言:javascript
复制
> /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

我该怎么做才好呢?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2018-09-27 13:44:32

我尝试了很多事情后才开始工作。我的猜测是,这两件事中的一件(或两者兼而有之)是它起作用的原因:

1)升级到木星实验室0.34.12

2)使用以下两行安装nodejs:

代码语言:javascript
复制
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - && \
apt-get install -y nodejs
票数 0
EN

Stack Overflow用户

发布于 2019-01-30 18:24:36

尽管答案已被接受,但如果仍然存在任何问题并在代理连接后面,请尝试在npm配置中设置代理。

示例->

代码语言:javascript
复制
npm config set http-proxy=""
npm config set https-proxy=""
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51267124

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档