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=https://npm.taobao.org/mirrors/node-sass/ //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:
- Module not found: Error: Can‘t resolve ‘sass-loader‘ in…
- [Webpack Update] vue-loader Error: Compiled with problems : ERRORModule notfound: Error:Can‘ t resolve vue in
- [Solved] npm install sass@~1.32 sass-loader deepmerge -D Install Error
- [Solved] Gulp-sass Install Error: error: cannot find module ‘sass‘
- NPM run dev Error Module build failed: Error: Cannot find module ‘node-sass’
- Module build failed: Error: Node Sass version 6.0.0 is incompatible with ^4.0.0
- [Solved] gulp-sass Package scss Files Error: Error in plugin “gulp-sass“Message:
- [Solved] npm Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.
- [Solved] Vue cli version is @ Vue/cli 4.5.13, and sass is used to report an error
- [Solved] npm Error: Error: Cannot find module ‘postcss-loader‘
- How to Solve Angular Error: error NG8002: Can‘t bind to ‘ngModel‘ since it isn‘t a known property of ‘input‘.
- How to Fix Node SASS Error in Vue + webpack project after nodejs upgrade
- [Solved] swiper Error: The requested module ‘react’ is expected to be of type CommonJS, which does not support named exports. CommonJS modules can be imported by importing the default export
- if a proxy or similar is necessary `net.git-fetch-with-cli`, Rust Complete `Couldn‘t resolve host name (Coul
- [Solved] Error dropping database (can‘t rmdir “emos“ errno: 39)
- [Solved] internal/modules/cjs/loader.js:892 ^Error: Cannot find module ‘C:\Users\LX\Desktop\Node_DEMO\a
- How to Solve Error: Module did not self-register
- [Solved] Error: Can‘t locate revision identified by ‘xxx‘
- [Solved] redis Error: Can‘t save in background fork Cannot allocate memory