gruntjs / grunt-contrib-imagemin

Minify PNG, JPG, GIF and SVG images.
https://gruntjs.com
MIT License
1.21k stars 175 forks source link

ReferenceError: primordials is not defined #396

Closed zhangchunsheng closed 3 years ago

zhangchunsheng commented 3 years ago

macOS 11.1

grunt build

Loading "imagemin.js" tasks...ERROR
>> ReferenceError: primordials is not defined
Warning: Task "imagemin" not found. Use --force to continue.

grunt --version

grunt-cli v1.3.2
grunt v0.4.5

node --version

v12.7.0
zhangchunsheng commented 3 years ago

The new package can work.

"grunt": "^1.3.0",
"grunt-contrib-clean": "^2.0.0",
"grunt-contrib-cssmin": "^3.0.0",
"grunt-contrib-imagemin": "^4.0.0",
"grunt-contrib-uglify": "^5.0.0"