Closed
Description
I am attempting to install Plotly extensions to the Jupyter Lab environment as described in the "JupyterLab Support (Python 3.5+)" instructions here.
Whenever I attempt a build, or a jupyterlab extension install ...
without the --nobuild
option, installation fails. The trouble comes from npm
, but I cannot find any information about this error.
error Couldn't find any versions for "@types/d3" that matches "^[object Object]"
For more information on the problem, this is the result of an attempted build:
$ jupyter lab build
[LabBuildApp] JupyterLab 1.2.6
[LabBuildApp] Building in /usr/local/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: ...
These are the contents of the log file:
[LabBuildApp] Building in /usr/local/share/jupyter/lab
[LabBuildApp] Yarn configuration loaded.
[LabBuildApp] Node v13.8.0
[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
[LabBuildApp] > node /usr/local/lib/python3.7/site-packages/jupyterlab/staging/yarn.js install --non-interactive
[LabBuildApp] yarn install v1.15.2
[1/5] Validating package.json...
[2/5] Resolving packages...
warning jupyterlab-plotly > plotly.js > regl-splom > left-pad@1.3.0: use String.prototype.padStart()
warning jupyterlab-plotly > plotly.js > regl-error2d > bubleify > buble > os-homedir@2.0.0: This is not needed anymore. Use `require('os').homedir()` instead.
error Couldn't find any versions for "@types/d3" that matches "^[object Object]"
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[LabBuildApp] npm dependencies failed to install
...
I successfully installed plotly and d3 with npm
.
I am running Python 3.7.6, Jupyter Lab 1.2.6, IPyWidgets 7.5.1, Yarn 1.22.0, and Node 13.8.0.
All Python packages were installed using pip
.
Metadata
Metadata
Assignees
Labels
No labels