Error: C ++: error: unrecognized command line option '-stdlib = libC ++' install node lib

Running npm installation for the library with an error:

C ++: error: unrecognized command line option '-stdlib = libC ++'

+4
source share
1 answer

running the npm installation with the CXX = clang ++ environment variable made it work:

CXX=clang++ npm install ...
+6
source

All Articles