The issue was that I needed jlpm, which is found in jupyterlab.SlackBuild. Installing it and its dependency jupyterlab_serve.SlackBuild fixed the problem. This says:
The
jlpm
command is JupyterLab’s pinned version ofyarn
that is installed with JupyterLab. You may useyarn
ornpm
in lieu ofjlpm