I was trying to run an angular project in windows 10. It is the same project that I am doing in Ubuntu. When I clone the repository and install all the node packages I encounter
Run this command:
npm install --save node-sass
This does the same as above. Similarly to the answer above.
Try to run
npm i node-sass@latest
try using
npm rebuild node-sass
Laravel Mix 4 switches from node-sass to dart-sass (which may not compile as you would expect, OR you have to deal with the issues one by one)
OR
npm install node-sass
mix.sass('resources/sass/app.sass', 'public/css', {
implementation: require('node-sass')
});
https://laravel-mix.com/docs/4.0/upgrade
My case:
Missing node-sass in package.json
Solution:
I am also facing the same problem, but I resolve.
npm install node-sass
Above command work for me. As per your synario you can use the blow command.
Try 1
npm install node-sass
Try 2
remove node_modules folder and run npm install
Try 3
npm rebuild node-sass
Try 4
npm install --save node-sass
For your ref you can go through this github link