The following errors are reported:
View the official gulp-sass Download document:
The following solutions are given:
To use gulp-sass, you have to download node-sass or dart sass, and then download gulp-sass;
Download node-sass using the following command:
npm install node-sass
Use the following command to download the Gup sass protest without error
npm install sass gulp-sass --save-dev
To use gulp-sass
, you must install both gulp-sass
itself and a Sass compiler. gulp-sass
supports both Dart Sass and Node Sass, but Node Sass is deprecated. We recommend that you use Dart Sass for new projects, and migrate Node Sass projects to Dart Sass when possible.
Whichever compiler you choose, it’s best to install these as dev dependencies:
Then the sass module is introduced in gulpfile.js at
var sass = require(‘gulp-sass’)(require(‘sass’);
Read More:
- [Solved] gulp-sass Package scss Files Error: Error in plugin “gulp-sass“Message:
- [Solved] npm install sass@~1.32 sass-loader deepmerge -D Install Error
- NPM run dev Error Module build failed: Error: Cannot find module ‘node-sass’
- Module not found: Error: Can‘t resolve ‘sass-loader‘ in…
- Module not found: Error: Can‘t resolve ‘sass-loader‘
- Module build failed: Error: Node Sass version 6.0.0 is incompatible with ^4.0.0
- How to Fix Node SASS Error in Vue + webpack project after nodejs upgrade
- [Solved] Vue cli version is @ Vue/cli 4.5.13, and sass is used to report an error
- Gulp compression error: Error [ERR_REQUIRE_ESM]: Must use import to load ES Module…
- [Solved] webpack.config.js configuration encountered Error: Cannot find module’@babel/core’&&Cannot find module’@babel/plugin-transform-react-jsx’
- NPM install error: Cannot find module ‘D:\zip\node_modules\npm\bin\npm-cli.js‘
- [Solved] ionic Build Error: Cannot load gulp tasks: Error: Error in module: .\gulpfile.js:
- NPM start project error: cannot find module ‘webpack’ problem solution
- Error: uncaughtexception: cannot find module ‘internal / util / types’
- [Solved] Error: Cannot find module ‘webpack-cli/package.json‘
- [Solved] Executing npm install error: npm ERR! code EINTEGRITY
- How to Solve Koa Error: Cannot find module ‘koa-router‘
- Error: Cannot find module ‘png-js‘ [How to Solve]
- [Solved] This usually happens because your environment has changed since running `npm install`