title: Docker: Node Sass could not find a binding for your current environment: Linux/musl 64-bit with Node.js 10.x
body: <p>I am using Docker with live reloading for local development with a React frontend, a Node.js backend, and an Nginx server, on Windows 10. I can get these three services started and detecting changes but the client fails to compile every time no matter what I do. Here's the error code:</p>
  <pre><code>Failed to compile.
  client_1  | ./src/main.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/main.scss)
  client_1  | Error: Missing binding /client/node_modules/node-sass/vendor/linux_musl-x64-64/binding.node
  client_1  | Node Sass could not find a binding for your current environment: Linux/musl 64-bit with Node.js 10.x
  client_1  |
  client_1  | Found bindings for the following environments:
  client_1  |   - Windows 64-bit with Node.js 12.x
  client_1  |
  client_1  | This usually happens because your environment has changed since running `npm install`.
  client_1  | Run `npm rebuild node-sass` to download the binding for your current environment.
  </code></pre>
  <p>I am first installing the packages locally and then creating the containers and building the images with docker-compose.</p>
  <p><strong>client/Dockerfile.dev</strong></p>
  <pre><code>FROM node:lts
  
  WORKDIR /client
  
  EXPOSE 3000
  
  CMD [&quot;npm&quot;, &quot;start&quot;]
  </code></pre>
  <p><strong>docker-compose.dev.yml</strong> (with the other services stripped off for brevity)</p>
  <pre><code>version: &quot;3&quot;
  services:
    client:
      build:
        context: client
        dockerfile: Dockerfile.dev
      image: myapp-client
      environment:
        - NODE_ENV=development
      volumes:
        - ./client:/
        - ./client:/node_modules
      ports:
        - &quot;3000:3000&quot;
      tty: true
  </code></pre>
  <p>I have tried these Node.js images to no avail:</p>
  <pre><code>node:10
  node:latest
  node:lts
  node:10.16.3
  node:8.1.0-alpine
  </code></pre>
  <p>I have read about using <code>RUN npm rebuild node-sass</code> in my Dockerfile after <code>RUN npm install</code> but that would only work in production because for local development I am installing my packages from a script in <code>package.json</code></p>