Skip to content

Commit 0ab234e

Browse files
authored
Merge pull request #855 from yamaton/fix-binder
Fix an OpenSSL-related error in building the Binder image
2 parents 2a524df + 009163d commit 0ab234e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

binder/postBuild

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
#!/usr/bin/env bash
22
set -eux
33

4+
# Avoid OpenSSL error when Node.js > 16
5+
# https://stackoverflow.com/questions/73144960
6+
nodeversion="$(node -v | cut -d 'v' -f 2 | cut -d '.' -f 1)"
7+
if (( "$nodeversion" > 16 ))
8+
then
9+
export NODE_OPTIONS="--openssl-legacy-provider"
10+
fi
11+
412
# Build labextensions
513
jlpm bootstrap
614

0 commit comments

Comments
 (0)