title: Mac M1 - Node Error - error: no template named 'remove_cv_t' in namespace 'std'
body: <p>I am using the Macbook M1 and facing the following issue while <code>yarn install</code>. I am trying to set up a rails 6 project that is using stimulusJS.</p>
  <pre><code>
  /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:776:50: note: 'remove_cv' declared here
  template &lt;class _Tp&gt; struct _LIBCPP_TEMPLATE_VIS remove_cv
                                                   ^
  1 error generated.
  make: *** [Release/obj.target/binding/src/binding.o] Error 1
  gyp ERR! build error 
  gyp ERR! stack Error: `make` failed with exit code: 2
  gyp ERR! stack     at ChildProcess.onExit (/Users/fahadazeem/Data/Projects/golfpay360/node_modules/node-gyp/lib/build.js:262:23)
  gyp ERR! stack     at ChildProcess.emit (node:events:365:28)
  gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
  gyp ERR! System Darwin 20.3.0
  gyp ERR! command &quot;/opt/homebrew/Cellar/node/16.2.0/bin/node&quot; &quot;/Users/fahadazeem/Data/Projects/golfpay360/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;
  gyp ERR! cwd /Users/fahadazeem/Data/Projects/golfpay360/node_modules/node-sass
  gyp ERR! node -v v16.2.0```
  
  </code></pre>