Stuck resolving packages when installing
When installing jupyterlab-toc, the process is stuck "resolving packages". As of this writing, I have been waiting roughly 15 minutes and I haven't aborted the process yet. My juputerlab notebook server is running at the time of install.
jupyter labextension install jupyterlab-toc
> /usr/local/bin/npm pack jupyterlab-toc
npm notice
npm notice 📦 [email protected]
npm notice === Tarball Contents ===
npm notice 1.6kB package.json
npm notice 863B README.md
npm notice 1.5kB LICENSE
npm notice 2.9kB lib/extension.js
npm notice 11.3kB lib/generators.js
npm notice 373B lib/index.js
npm notice 1.5kB lib/registry.js
npm notice 6.5kB lib/toc.js
npm notice 304B lib/extension.d.ts
npm notice 1.1kB lib/generators.d.ts
npm notice 81B lib/index.d.ts
npm notice 2.1kB lib/registry.d.ts
npm notice 3.2kB lib/toc.d.ts
npm notice 2.1kB style/index.css
npm notice === Tarball Details ===
npm notice name: jupyterlab-toc
npm notice version: 0.2.1
npm notice filename: jupyterlab-toc-0.2.1.tgz
npm notice package size: 9.5 kB
npm notice unpacked size: 35.5 kB
npm notice shasum: edd570ba1a523e3e2bf5811b9995f9a99e0c4fe4
npm notice integrity: sha512-toWEuuN9zi3NM[...]qkQRGoDWupk+g==
npm notice total files: 14
npm notice
jupyterlab-toc-0.2.1.tgz
> node /usr/local/anaconda3/lib/python3.6/site-packages/jupyterlab/staging/yarn.js install
yarn install v1.5.1
(node:2376) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
info No lockfile found.
[1/4] 🔍 Resolving packages...
⠈ jupyterlab-toc@file:../extensions/jupyterlab-toc-0.2.1.tgz
I am new to jupyter and jupyterlab so please bear with me.
I have installed jupyterlab via conda install -c conda-forge jupyterlab and I have the current version of conda installed since earlier.
I started the jupyterlab notebook at a specific directory:
jupyter lab --NotebookApp.notebook_dir=/Users/me/blah/Jupyter/JupyterLab/Notebooks
This seems to be related: https://github.com/jupyter-widgets/ipywidgets/issues/2061
Hi @winterflags, what versions of node/npm are you using? There is a bug with the version of yarn we are using that prevents us from supporting node 10, and that can cause issues like this.
Did you install nodejs as specified in https://jupyterlab.readthedocs.io/en/stable/user/extensions.html ? I had the same symptoms before installing it.
Also to avoid downgrading jupyterlab (0.33 > 0.28) using conda, I installed nodejs 8.10.0.
conda install -c conda-forge nodejs=8
jupyter labextension install @jupyterlab/toc
I have the same problem.
npm --version: 6.3.0
node --version: v10.8.0
jupyter lab --version: 0.33.10
Do I understand it correctly that I have to downgrade node?
For at least a few more hours. We are releasing a new version which includes support for node 10 imminently :)
Okay :) I was about to report, that I made it work by installing jupyterlab from gitbub after following the discussion on https://github.com/jupyter-widgets/ipywidgets/issues/2061