Module build failed: Error: Cannot find module 'node-sass'

Vishnu Nair picture Vishnu Nair · Sep 7, 2018 · Viewed 36.7k times · Source

Module build failed: Error: Cannot find module 'node-sass'

Also run the commands,

sudo npm install node-sass --save

sudo npm rebuild node-sass --force

Still showing the same error. Anyone pls help.

Answer

Sachin Shah picture Sachin Shah · Sep 7, 2018

There are two things you can do to fixed this issue.

1) npm rebuild node-sass --force 

2) npm install node-sass

This both command will fixed your node-sass issue.