小编Bri*_*ith的帖子

Jupyter Labs:构建时“运行时错误:npm 依赖项无法安装”

我是 Anaconda 的新手,最近在我的计算机上安装了 jupyter 实验室。但是,每当我尝试在本地 Jupyter Labs 实例上构建时,都会收到以下错误:

在 jupyter 实验室终端中运行的代码:

PS C:\Users\briakeit> jupyter lab build
Run Code Online (Sandbox Code Playgroud)

输出:

[LabBuildApp] JupyterLab 1.2.5
[LabBuildApp] Building in C:\Users\briakeit\AnacondaFiles\share\jupyter\lab
[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
An error occured.
RuntimeError: npm dependencies failed to install
See the log file for details:  C:\Users\briakeit\AppData\Local\Temp\jupyterlab-debug-0b5ejkfm.log
Run Code Online (Sandbox Code Playgroud)

日志文件:

[LabBuildApp] Building in C:\Users\briakeit\AnacondaFiles\share\jupyter\lab
[LabBuildApp] Yarn configuration loaded.
[LabBuildApp] Node v13.7.0

[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
[LabBuildApp] > node C:\Users\briakeit\AnacondaFiles\lib\site-packages\jupyterlab\staging\yarn.js install --non-interactive
[LabBuildApp] yarn install v1.15.2
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching …
Run Code Online (Sandbox Code Playgroud)

jupyter jupyter-lab

5
推荐指数
1
解决办法
8676
查看次数

标签 统计

jupyter ×1

jupyter-lab ×1