OpenBazaar / openbazaar-desktop

OpenBazaar 2.0 Desktop Client (talks to openbazaar-go server daemon)
MIT License
646 stars 186 forks source link

Update node-sass version and apply npm audit fixes #1912

Open M0Rf30 opened 3 years ago

M0Rf30 commented 3 years ago

With this PR I want to fix node-sass message

> node-sass --source-map true --include-path styles styles/main.scss .tmp/styles/main.css

/home/gianluca/.cache/yay/openbazaar-git/src/openbazaar/node_modules/node-sass/lib/binding.js:13
      throw new Error(errors.unsupportedEnvironment());
      ^

Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (88)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.13.1
    at module.exports (/home/gianluca/.cache/yay/openbazaar-git/src/openbazaar/node_modules/node-sass/lib/binding.js:13:13)
    at Object.<anonymous> (/home/gianluca/.cache/yay/openbazaar-git/src/openbazaar/node_modules/node-sass/lib/index.js:14:35)
    at Module._compile (node:internal/modules/cjs/loader:1102:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1131:10)
    at Module.load (node:internal/modules/cjs/loader:967:32)
    at Function.Module._load (node:internal/modules/cjs/loader:807:14)
    at Module.require (node:internal/modules/cjs/loader:991:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.<anonymous> (/home/gianluca/.cache/yay/openbazaar-git/src/openbazaar/node_modules/node-sass/bin/node-sass:10:10)
    at Module._compile (node:internal/modules/cjs/loader:1102:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1

and fix these

found 70 vulnerabilities (68 low, 1 moderate, 1 high)
  run `npm audit fix` to fix them, or `npm audit` for details

I've also tested on my machine and everything seems to work fine