xxxxxxxxxx
If you want to use scss/sass in your react app try to do this :
First remove node-sass:
yarn remove node-sass
if you use npm:
npm uninstall node-sass
Then install sass instead of node-sass:
yarn add -D sass
or
npm i -D sass
Finally your scss/sass files will be correctly compiled !
xxxxxxxxxx
sudo npm install --save-dev --unsafe-perm node-sass
Edited to explain the options (from comments):
--save-dev is used so that your app is able to find the module in local node_modules. --save-dev adds package to devDependencies in package.json. --unsafe--perm is used to run install scripts as root. To avoid sudo, use nvm instead. --unsafe--perm is really not needed as sudo is already mentioned. So the command basically air tights the script to install node-sass at any cost.