Здравствуйте. Поставил GULP 4 по видео,все работало,ничего не менял,сейчас запускаю а там следующая ошибка:
$ npm start
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
> gulp-starter@1.0.0 start
> gulp
Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import 'C:\Users\1\Desktop\gulp-starter\gulpfile.js' is not supported resolving ES modules imported from C:\Users\1\Desktop\gulp-starter\node_modules\gulp\node_modules\gulp-cli\lib\shared\require-or-import.js
Did you mean to import C:/Users/1/Desktop/gulp-starter/gulpfile.js/index.js?
at new NodeError (node:internal/errors:372:5)
at finalizeResolution (node:internal/modules/esm/resolve:433:17)
at moduleResolve (node:internal/modules/esm/resolve:1009:10)
at defaultResolve (node:internal/modules/esm/resolve:1218:11)
at ESMLoader.resolve (node:internal/modules/esm/loader:580:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18)
at ESMLoader.import (node:internal/modules/esm/loader:380:22)
at importModuleDynamically (node:internal/modules/cjs/loader:1043:29)
at importModuleDynamicallyWrapper (node:internal/vm/module:437:21)
at importModuleDynamically (node:vm:381:46) {
code: 'ERR_UNSUPPORTED_DIR_IMPORT',
url: 'file:///C:/Users/1/Desktop/gulp-starter/gulpfile.js'
}
Использую require, а не import from.