Cannot find module 'source-map' after install npm install source-map --save-dev
An unhandled exception occurred: Cannot find module source-map
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Cannot find module 'source-map' after install npm install source-map --save-dev
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jefferson S. MottaRank #207 · 11.7K reputationPosted Jan 10, 2023, 4:02 PM EST
Hi, delete node_modules and try again.
Amit MohantyRank #112 · 20K reputationPosted Jan 10, 2023, 11:40 PM EST
Try deleting 'node_modules' and 'package-lock.json' files from your project and reinstall the dependencies by running "npm install" or "yarn install".
Vishal YelveRank #178 · 13.6K reputationPosted Jan 11, 2023, 12:40 AM EST
delete node_modules and do npm install
Vishal JoshiRank #377 · 6.7K reputationPosted Jan 12, 2023, 12:38 AM EST
Hello
Please check the bower.json file ignore section. as mention below.
"ignore": [ "**/.*", "node_modules", "bower_components", "test", "tests" ],if you have a node_modules folder with a different name either you need to add it to ignore the section or you can physically delete it and try to reinstall it.
Thanks