jupyterlab-lsp
jupyterlab-lsp copied to clipboard
Fails to build the binder image
trafficstars
Description
The jupyterlab-lsp Binder fails to launch due to an error during the build.

Reproduce
Try: https://mybinder.org/v2/gh/jupyter-lsp/jupyterlab-lsp/HEAD Or, click any "Launch Binder" button in a PR.
Context
This error is known to occurs in Node > 16.
Indeed, the postBuild is executed with Node.js 18, unexpectedly.
According to the build log, node 16 is initially installed as specified in environment.yml, but somehow upgraded to node 18 during installation of r-base and others.
A workaround
Add export NODE_OPTIONS="--openssl-legacy-provider" at the beginning of postBuild.