jupyterlab-lsp icon indicating copy to clipboard operation
jupyterlab-lsp copied to clipboard

Fails to build the binder image

Open yamaton opened this issue 2 years ago • 0 comments

Description

The jupyterlab-lsp Binder fails to launch due to an error during the build.

jupyterlab-lsp binder

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.

yamaton avatar Sep 13 '22 16:09 yamaton