Running npm installation for the library with an error:
C ++: error: unrecognized command line option '-stdlib = libC ++'
running the npm installation with the CXX = clang ++ environment variable made it work:
CXX=clang++ npm install ...