Node-sass: [unspported] electron 4.0.2

Created on 29 Jan 2019  路  1Comment  路  Source: sass/node-sass

node (macOS) | v11.8.0
electron 4.0.2 using node 10.11.0
node-sass 4.11.0

index.html

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">

    <link rel="stylesheet" href="./out/index.css">
  </head>
  <body>
    <div id="client"></div>

    <script>
      console.log(process.versions);

      const sass = require('node-sass');

      console.log(sass.renderSync({
        data: 'body{color:#f00;}',
      }));

      require('./out/index');
    </script>
  </body>
</html>

error

Uncaught Error: Missing binding /Users/marek/Desktop/redred/node_modules/node-sass/vendor/darwin-x64-64/binding.node
Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 10.x

Found bindings for the following environments:

  • OS X 64-bit with Node.js 11.x

This usually happens because your environment has changed since running npm install.
Run npm rebuild node-sass to download the binding for your current environment.

If I installed node 10.11.0 like electron using that dyld: Symbol not found error appears. npm rebuild does not help... nothing

>All comments

We don't support electron.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Rudloff picture Rudloff  路  3Comments

harukaeru picture harukaeru  路  3Comments

paulcpederson picture paulcpederson  路  3Comments

Pixelatex picture Pixelatex  路  3Comments

nagyfej picture nagyfej  路  3Comments