node-sass-middleware is not installing in my computer. I've tried almost every method to do so but nothing get hand.
It was saying to install latest version of python (I do), latest version of VS Code (I do) even after error is coming.
I've tried its alternative module node-sass but it does not match my need.
I want to setup this
const sassMiddleware = require('node-sass-middleware');
|
|
|
app.use(
sassMiddleware({
src: __dirname,
dest: __dirname,
debug: true,
outputStyle: 'extended',
prefix: '/css'
})
);
I've tried to install node-sass-middleware but its giving me this error :
I found one way to use node-sass-middleware
Step1) download library from https://github.com/sass/node-sass-middleware
step2) extract it(if you download zip file) and now create an
node-sass-middlewarefolder innode_module folderof your projectstep3) copy
all folders and filesfrom an zip file(extract) andpasteit insidenode-sass-middlewarefolder(that we created in node_module FOLDER)step4) now run your code in vs code for sass