با سلام من ارور میگیرم از دستور GULP imagemin بدین شکل :
PS D:\\gulpproject> gulp minifyimages D:\\gulpproject\\gulpfile.js:3 import imagemin from 'gulp-imagemin'; ^^^^^^ SyntaxError: Cannot use import statement outside a module at internalCompileFunction (node:internal/vm:73:18) at wrapSafe (node:internal/modules/cjs/loader:1149:20) at Module._compile (node:internal/modules/cjs/loader:1190:27) at Module._extensions..js (node:internal/modules/cjs/loader:1280:10) at Module.load (node:internal/modules/cjs/loader:1089:32) at Module._load (node:internal/modules/cjs/loader:930:12) at Module.require (node:internal/modules/cjs/loader:1113:19) at require (node:internal/modules/cjs/helpers:103:18) at requireOrImport (C:\\Users\\Milad-karimi\\AppData\\Roaming\\npm\\node_modules\\gulp\\node_modules\\gulp-cli\\lib\\shared\\require-or-import.js:19:11) at execute (C:\\Users\\Milad-karimi\\AppData\\Roaming\\npm\\node_modules\\gulp\\node_modules\\gulp-cli\\lib\\versioned\\^4.0.0\\index.js:37:3)