Python Jupyter实验室无法安装任何扩展:断言`data';失败

Python Jupyter实验室无法安装任何扩展:断言`data';失败,python,node.js,webpack,jupyter-lab,Python,Node.js,Webpack,Jupyter Lab,我试图安装@jupyter widgets/jupyterlab manager: Building jupyterlab assets (build:prod:minimize) An error occured. RuntimeError: JupyterLab failed to build See the log file for details: /tmp/jupyterlab-debug-vs3sn2l7.log 其他扩展也无法安装,并给出相同的错误。从web客户端安装时出错50

我试图安装
@jupyter widgets/jupyterlab manager

Building jupyterlab assets (build:prod:minimize)
An error occured.
RuntimeError: JupyterLab failed to build
See the log file for details:  /tmp/jupyterlab-debug-vs3sn2l7.log
其他扩展也无法安装,并给出相同的错误。从web客户端安装时出错500

我在谷歌上搜索过,但找不到同样的错误。此外,针对类似错误的解决方案似乎都不起作用

我的环境:

Raspbian GNU/Linux 10 (buster)

$ node --version
v10.15.2

$ python3 -V
Python 3.7.3

$ jupyter --version
jupyter core     : 4.6.1
jupyter-notebook : 6.0.2
qtconsole        : 4.6.0
ipython          : 7.11.1
ipykernel        : 5.1.3
jupyter client   : 5.3.4
jupyter lab      : 1.2.6
nbconvert        : 5.6.1
ipywidgets       : 7.5.1
nbformat         : 5.0.3
traitlets        : 4.3.3

$ which jupyter
/usr/local/bin/jupyter
以下是日志文件:

纱线配置已加载。
节点v10.15.2
>/usr/local/bin/npm pack@jupyter widgets/jupyterlab manager
npm通知

npm注意事项JupyterLab 1.x在构建之前检查内存大小(
确保最大旧空间
行),默认为4GB。由于我使用的是Raspberry Pi,内存不满足此要求。这就是断言失败的原因

但是JupyterLab2.0.0改变了这种行为,因为节点12+处理内存。(, ). 我成功地用节点v10.15.2构建了JupyterLab2.0.1,在1000 MB之后(我认为500 MB就足够了)

但是,JupyterLab 2.1.0再次支持节点10+

要绕过内存小于4 GB的检查,您可以:

  • 安装
    jupyterlab>=2.0.0,您还可以尝试设置--dev=True,如下所述。这在没有任何mem设置更改的情况下对我有效。