Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
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.
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.
node-sass
Add a comment
This is a common issue
Step 1 : Try removing the node_modules directory
Step 1 :
Step 2: Install with the command
Step 2:
npm i
I got the same error and this command fix my issue. sudo npm install --save-dev --unsafe-perm node-sass
sudo npm install --save-dev --unsafe-perm node-sass
Had the same issue. But I was too lazy to read the NPM feedback.
So... I was missing --scripts-prepend-node-path. Simple ran:
npm install --scripts-prepend-node-path
and
npm run watch --scripts-prepend-node-path
All good.
try these :
Windows users
set NODE_OPTIONS=--openssl-legacy-provider
Mac users
export NODE_OPTIONS=--openssl-legacy-provider
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.