title: Install node-sass dependency using yarn install
body: <p>Trying to get a project built on Ruby to run locally but I'm running into an issue (or a few) <code>node-sass: command failed</code> when running <code>yarn install</code>. After that it goes downhill.
  I have installed Node, Ruby, Rails, etc but I can't find a solution for that. I've tried to install <code>node-sass</code> via npm then running <code>yarn install</code> once again to install the other dependencies, but I got the same result...</p>
  <p>I got this error below:</p>
  <pre><code>error /home/fernie/theodinproject/node_modules/node-sass: Command failed.
  Exit code: 1
  Command: node scripts/build.js
  Arguments: 
  Directory: /home/fernie/theodinproject/node_modules/node-sass
  Output:
  Building: /home/fernie/.nvm/versions/node/v15.14.0/bin/node /home/fernie/theodinproject/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
  gyp info it worked if it ends with ok
  gyp verb cli [
  gyp verb cli   '/home/fernie/.nvm/versions/node/v15.14.0/bin/node',
  gyp verb cli   '/home/fernie/theodinproject/node_modules/node-gyp/bin/node-gyp.js',
  gyp verb cli   'rebuild',
  gyp verb cli   '--verbose',
  gyp verb cli   '--libsass_ext=',
  gyp verb cli   '--libsass_cflags=',
  gyp verb cli   '--libsass_ldflags=',
  gyp verb cli   '--libsass_library='
  gyp verb cli ]
  gyp info using node-gyp@3.8.0
  gyp info using node@15.14.0 | linux | x64
  gyp verb command rebuild []
  gyp verb command clean []
  gyp verb clean removing &quot;build&quot; directory
  gyp verb command configure []
  gyp verb check python checking for Python executable &quot;python2&quot; in the PATH
  gyp verb `which` failed Error: not found: python2
  gyp verb `which` failed     at getNotFoundError (/home/fernie/theodinproject/node_modules/which/which.js:13:12)
  gyp verb `which` failed     at F (/home/fernie/theodinproject/node_modules/which/which.js:68:19)
  gyp verb `which` failed     at E (/home/fernie/theodinproject/node_modules/which/which.js:80:29)
  gyp verb `which` failed     at /home/fernie/theodinproject/node_modules/which/which.js:89:16
  gyp verb `which` failed     at /home/fernie/theodinproject/node_modules/isexe/index.js:42:5
  gyp verb `which` failed     at /home/fernie/theodinproject/node_modules/isexe/mode.js:8:5
  gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:193:21)
  gyp verb `which` failed  python2 Error: not found: python2
  gyp verb `which` failed     at getNotFoundError (/home/fernie/theodinproject/node_modules/which/which.js:13:12)
  gyp verb `which` failed     at F (/home/fernie/theodinproject/node_modules/which/which.js:68:19)
  gyp verb `which` failed     at E (/home/fernie/theodinproject/node_modules/which/which.js:80:29)
  gyp verb `which` failed     at /home/fernie/theodinproject/node_modules/which/which.js:89:16
  gyp verb `which` failed     at /home/fernie/theodinproject/node_modules/isexe/index.js:42:5
  gyp verb `which` failed     at /home/fernie/theodinproject/node_modules/isexe/mode.js:8:5
  gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:193:21) {
  gyp verb `which` failed   code: 'ENOENT'
  gyp verb `which` failed }
  gyp verb check python checking for Python executable &quot;python&quot; in the PATH
  gyp verb `which` succeeded python /usr/bin/python
  gyp ERR! configure error 
  gyp ERR! stack Error: Command failed: /usr/bin/python -c import sys; print &quot;%s.%s.%s&quot; % sys.version_info[:3];
  gyp ERR! stack   File &quot;&lt;string&gt;&quot;, line 1
  gyp ERR! stack     import sys; print &quot;%s.%s.%s&quot; % sys.version_info[:3];
  gyp ERR! stack                       ^
  gyp ERR! stack SyntaxError: invalid syntax
  gyp ERR! stack 
  gyp ERR! stack     at ChildProcess.exithandler (node:child_process:326:12)
  gyp ERR! stack     at ChildProcess.emit (node:events:369:20)
  gyp ERR! stack     at maybeClose (node:internal/child_process:1067:16)
  gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
  gyp ERR! System Linux 5.8.0-50-generic
  gyp ERR! command &quot;/home/fernie/.nvm/versions/node/v15.14.0/bin/node&quot; &quot;/home/fernie/theodinproject/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 /home/fernie/theodinproject/node_modules/node-sass
  gyp ERR! node -v v15.14.0
  gyp ERR! node-gyp -v v3.8.0
  gyp ERR! not ok 
  </code></pre>
  <p><strong>package.json</strong></p>
  <pre><code>{
    &quot;license&quot;: &quot;MIT&quot;,
    &quot;scripts&quot;: {
      &quot;test&quot;: &quot;jest --coverage&quot;,
      &quot;eslint&quot;: &quot;eslint --max-warnings 0 './app/javascript/**/*'&quot;
    },
    &quot;dependencies&quot;: {
      &quot;@babel/preset-react&quot;: &quot;^7.13.13&quot;,
      &quot;@hookform/resolvers&quot;: &quot;^0.1.1&quot;,
      &quot;@rails/ujs&quot;: &quot;^6.1.3&quot;,
      &quot;@rails/webpacker&quot;: &quot;5.2.1&quot;,
      &quot;@sentry/browser&quot;: &quot;^6.2.5&quot;,
      &quot;axios&quot;: &quot;^0.21.1&quot;,
      &quot;babel-plugin-prismjs&quot;: &quot;^2.0.1&quot;,
      &quot;babel-plugin-transform-react-remove-prop-types&quot;: &quot;^0.4.24&quot;,
      &quot;bootstrap&quot;: &quot;^4.5.3&quot;,
      &quot;core-js&quot;: &quot;^3.10.1&quot;,
      &quot;hint.css&quot;: &quot;^2.6.0&quot;,
      &quot;jquery&quot;: &quot;^3.6.0&quot;,
      &quot;js-base64&quot;: &quot;^3.6.0&quot;,
      &quot;node-sass&quot;: &quot;^4.14.1&quot;,
      &quot;popper.js&quot;: &quot;^1.16.1&quot;,
      &quot;prismjs&quot;: &quot;^1.23.0&quot;,
      &quot;prop-types&quot;: &quot;^15.7.2&quot;,
      &quot;react&quot;: &quot;^16.14.0&quot;,
      &quot;react_ujs&quot;: &quot;^2.6.1&quot;,
      &quot;react-dom&quot;: &quot;^16.14.0&quot;,
      &quot;react-flip-move&quot;: &quot;^3.0.4&quot;,
      &quot;react-hook-form&quot;: &quot;^6.15.1&quot;,
      &quot;react-scrolllock&quot;: &quot;^5.0.1&quot;,
      &quot;react-tabs&quot;: &quot;^3.2.2&quot;,
      &quot;regenerator-runtime&quot;: &quot;^0.13.7&quot;,
      &quot;stickyfilljs&quot;: &quot;^2.1.0&quot;,
      &quot;toaster&quot;: &quot;^0.1.2&quot;,
      &quot;turbolinks&quot;: &quot;^5.2.0&quot;,
      &quot;validate.js&quot;: &quot;^0.13.1&quot;,
      &quot;yup&quot;: &quot;^0.32.9&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@testing-library/jest-dom&quot;: &quot;^5.11.10&quot;,
      &quot;@testing-library/react&quot;: &quot;^11.2.6&quot;,
      &quot;eslint&quot;: &quot;^7.24.0&quot;,
      &quot;eslint-config-airbnb&quot;: &quot;^18.2.1&quot;,
      &quot;eslint-plugin-import&quot;: &quot;^2.22.1&quot;,
      &quot;eslint-plugin-jsx-a11y&quot;: &quot;^6.4.1&quot;,
      &quot;eslint-plugin-react&quot;: &quot;^7.23.2&quot;,
      &quot;eslint-plugin-react-hooks&quot;: &quot;^4.2.0&quot;,
      &quot;jest&quot;: &quot;^26.6.3&quot;,
      &quot;webpack-dev-server&quot;: &quot;^3.11.2&quot;
    },
    &quot;jest&quot;: {
      &quot;clearMocks&quot;: true,
      &quot;testPathIgnorePatterns&quot;: [
        &quot;&lt;rootDir&gt;/config/&quot;,
        &quot;/node_modules/&quot;,
        &quot;/vendor/&quot;
      ],
      &quot;setupFilesAfterEnv&quot;: [
        &quot;&lt;rootDir&gt;/setupTests.js&quot;
      ]
    }
  }
  </code></pre>
  <p>It seems that <code>node-sass</code> is a <code>webpacker</code> dependency, right? Because this happens after yarn runs <code>@rails/webpacker</code>.</p>
  <p>Everything is up-to-date I think</p>
  <pre><code>$ node -v
  v15.14.0
  $ node-sass -v
  node-sass    5.0.0    (Wrapper)    [JavaScript]
  libsass      3.5.5    (Sass Compiler)    [C/C++]
  $ yarn -v
  1.22.10
  $ ruby -v
  ruby 2.6.6p146 (2020-03-31 revision 67876) [x86_64-linux]
  $ rails -v
  Rails 6.1.3.1
  $ node-gyp -v
  v8.0.0
  </code></pre>
  <p>Does anyone have any idea what could be causing this?</p>
  <p>It's my first time contributing to a Ruby project and I don't wanna mess up. I appreciate any help</p>