c++: error: unrecognized command line option '-stdlib=libc++' while installing a node package
<p>Running npm install for a library fails with error:</p>

<blockquote>
  <p>c++: error: unrecognized command line option '-stdlib=libc++'</p>
</blockquote>