I have done development on Windows (WSL and command prompt), Linux (CentOS & Ubuntu based), and MacOS, and just about every time I go back into an old project where
node-sass is used I run into issues! It's almost always the dreaded
gyp ERR! stack Error:gyp
failed with exit code: 1
From what I've found from talking to friends and googling the same thing at least 30 times (
gyp node-sass rebuild) at this point, is to do a rebuild or re-install of the package.
These posts have helped me in the past, so credit to them for getting me out of this bind many many times.
npm uninstall node-sass npm install node-sass
I will update this when I actually figure out what is actually going on with this and WHY.