If you are on Mac and I am sure you have started getting this error all of a sudden or after recent node version changes. Unfortunately, the error log does not help to resolve this issue.

I read through StackOverflow and certain GitHub issues, and they suggested to remove the npm_modules folder and do npm install/update to resolve this, but in vain. And it could be a time-consuming process depending on the number of modules you are using.

I am not pretty sure how this error shows up but the solution is surprisingly simple. All you have to do is rebuild the node-sass package, here’s how you can do that –

npm rebuild node-sass

This is going to take some time but it should resolve the error.

Please comment below if this solution worked for you and if it does not help others know how did you resolve.

Stay Digified!!
Sachin Khosla


Share this post: