Module not found: Error: Can‘t resolve ‘sass-loader‘

there are many situations, such as not installing
SASS loader NPM install sass-loader node-sass –save-dev
or installing a version too high to support, the following is to solve the version too high

//First remove the version we have already installed.
npm uninstall node-sass 
npm uninstall sass-loader
npm uninstall style-loader
//Note that when we clean up, we can choose to clean up globally install globally, otherwise we will get the same error the next time we create the project.
npm i node-sass --sass_binary_site= //Taobao image installation
npm install [email protected] --save-dev //Install version 7.3.1 of sass
npm install style-loader --save-dev // install style-loader

Read More: