title: Node-gyp error while `npm install` on macos Bigsur
body: <p>I am getting node-gyp error while doing <code>npm install</code>.
  It's mainly happening when a project has <code>node-sass</code> or <code>env-cmd</code> these kind of dependencies. While trying to install env-cmd package or node-sass it's getting this errors.
  I am using <code>macos bigsur v11.6.1.</code> <code>node version v16.14.0</code>.
  Can anybody help ?</p>
  <pre><code>  npm ERR! ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const 
  
      std::string &amp;' to prevent copying
      npm ERR!         for (const auto denominator : denominators)
      npm ERR!              ^~~~~~~~~~~~~~~~~~~~~~~~
      npm ERR!                         &amp;
      npm ERR! 2 warnings generated.
      npm ERR! In file included from ../src/libsass/src/util.cpp:3:
      npm ERR! ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
      npm ERR!         for (const auto numerator : numerators)
      npm ERR!                         ^
      npm ERR! ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &amp;' to prevent copying
      npm ERR!         for (const auto numerator : numerators)
      npm ERR!              ^~~~~~~~~~~~~~~~~~~~~~
      npm ERR!                         &amp;
      npm ERR! ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
      npm ERR!         for (const auto denominator : denominators)
      npm ERR!                         ^
      npm ERR! ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &amp;' to prevent copying
      npm ERR!         for (const auto denominator : denominators)
      npm ERR!              ^~~~~~~~~~~~~~~~~~~~~~~~
      npm ERR!                         &amp;
      npm ERR! 2 warnings generated.
      npm ERR! In file included from ../src/libsass/src/values.cpp:3:
      npm ERR! In file included from ../src/libsass/src/values.hpp:4:
      npm ERR! ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
      npm ERR!         for (const auto numerator : numerators)
      npm ERR!                         ^
      npm ERR! ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &amp;' to prevent copying
      npm ERR!         for (const auto numerator : numerators)
      npm ERR!              ^~~~~~~~~~~~~~~~~~~~~~
      npm ERR!                         &amp;
      npm ERR! ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
      npm ERR!         for (const auto denominator : denominators)
      npm ERR!                         ^
      npm ERR! ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &amp;' to prevent copying
      npm ERR!         for (const auto denominator : denominators)
      npm ERR!              ^~~~~~~~~~~~~~~~~~~~~~~~
      npm ERR!                         &amp;
      npm ERR! 2 warnings generated.
      npm ERR! In file included from ../src/binding.cpp:1:
      npm ERR! In file included from ../../nan/nan.h:58:
      npm ERR! In file included from /Users/macbookpro/.node-gyp/16.14.0/include/node/node.h:63:
      npm ERR! In file included from /Users/macbookpro/.node-gyp/16.14.0/include/node/v8.h:30:
      npm ERR! /Users/macbookpro/.node-gyp/16.14.0/include/node/v8-internal.h:492:38: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?
      npm ERR!             !std::is_same&lt;Data, std::remove_cv_t&lt;T&gt;&gt;::value&gt;::Perform(data);
      npm ERR!                                 ~~~~~^~~~~~~~~~~
      npm ERR!                                      remove_cv
      npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:710:50: note: 'remove_cv' declared here
      npm ERR! template &lt;class _Tp&gt; struct _LIBCPP_TEMPLATE_VIS remove_cv
      npm ERR!                                                  ^
      npm ERR! 1 error generated.
      npm ERR! make: *** [Release/obj.target/binding/src/binding.o] Error 1
      npm ERR! gyp ERR! build error 
      npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
      npm ERR! gyp ERR! stack     at ChildProcess.onExit (/Users/macbookpro/Desktop/V2 projects/ecrm/latest/ecrm-training-frontend/node_modules/node-gyp/lib/build.js:262:23)
      npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:520:28)
      npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
      npm ERR! gyp ERR! System Darwin 20.6.0
      npm ERR! gyp ERR! command &quot;/usr/local/bin/node&quot; &quot;/Users/macbookpro/Desktop/V2 projects/ecrm/latest/ecrm-training-frontend/node_modules/node-gyp/bin/node-gyp.js&quot; &quot;rebuild&quot; &quot;--verbose&quot; &quot;--libsass_ext=&quot; &quot;--libsass_cflags=&quot; &quot;--libsass_ldflags=&quot; &quot;--libsass_library=&quot;
      npm ERR! gyp ERR! cwd /Users/macbookpro/Desktop/V2 projects/ecrm/latest/ecrm-training-frontend/node_modules/node-sass
      npm ERR! gyp ERR! node -v v16.14.0
      npm ERR! gyp ERR! node-gyp -v v3.8.0
      npm ERR! gyp ERR! not ok 
      npm ERR! Build failed with error code: 1
  </code></pre>