So, I already have a classic Jupyter Notebook installed on an Ubuntu 20.04 Server, and then I realized I cannot share those notebooks with multiple users, which forces me to install JupyterHub.
So, hoping that I could just “install over” the existing Jupyter Notebook installation, I found this:
So, I got to this point:
sudo apt-get install npm nodejs-legacy
Ok, let’s try:
user@server:~$ sudo apt install nodejs-legacy
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package nodejs-legacy is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
nodejs libnode64
E: Package 'nodejs-legacy' has no installation candidate
Great , nodejs-legacy
is not in Ubuntu 20.04! Well, eventually I found
Jupyterlab extension not detecting nodejs on Ubuntu · Issue #414 · kiteco/issue-tracker
which pointed me to
jupyterlab
doesn’t recognize nodejs
and npm
installations · Issue #3640 · jupyterlab/jupyterlab
… which mentioned sudo apt install -y nodejs npm
, and it worked!
…
But of course, no one really thought that would be the end of it, no? Onwards to quickstart
npm install -g configurable-http-proxy
Sure:
user@server:~$ sudo npm install -g configurable-http-proxy
/usr/local/bin/configurable-http-proxy -> /usr/local/lib/node_modules/configurable-http-proxy/bin/configurable-http-proxy
npm WARN notsup Unsupported engine for configurable-http-proxy@4.5.0: wanted: {"node":">= 12.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: configurable-http-proxy@4.5.0
npm WARN notsup Unsupported engine for commander@8.0.0: wanted: {"node":">= 12"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: commander@8.0.0
+ configurable-http-proxy@4.5.0
added 45 packages from 56 contributors in 3.654s
Well, maybe something got installed there, but “Unsupported engine for configurable-http-proxy” already tells me something won’t work/will break, even without proceeding further.
So, what is the right npm/node to install for Ubuntu 20.04, so that I could use jupyterhub from pip3?