Updated: 11th December 2021
Fortunately, there is another package which do same thing and have same command.
- Type this to install gulp-terser
npm install gulp-terser --save-dev
- Change gulp-uglify to
const uglify = require("gulp-terser");