D
D
Daria Farbak2021-07-07 20:36:44
gulp.js
Daria Farbak, 2021-07-07 20:36:44

Problem installing gulp, how to solve?

everything seems to be filled out correctly in galpfile.js, everything is in package.json but on the command line it displays

$ gulp scss
[20:32:44] Using gulpfile ~\Desktop\start__gilp\gulpfile.js
[20:32:44] Task never defined: scss
[20:32:44] To list available tasks, try running: gulp --tasks


if you type gulp --tasks, then Tasks for ~\Desktop\start__gilp\gulpfile.js is
empty(
is there an error somewhere in galpfile.js? Please help

galpfile.js
const { src, dest, series, parallel, watch } = require('gulp');
const sass = require('gulp-sass');

function scss() {
    return src("app/scss/style.scss")

    .pipe(sass())
    .pipe(dest("app/css/style.css"))
}

exports.scss = scss;


package.json
{
  "name": "start__gilp",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "Dasha Farbak",
  "license": "ISC",
  "devDependencies": {
    "gulp": "^4.0.2",
    "gulp-sass": "^5.0.0",
    "sass": "^1.35.1"
  }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2021-07-08
@FDAsha

That's right.

And everything works.
60e6208322559771456806.png

But if your file is called g a lpfile.js, then there may be a problem here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question