Zsh: segmentation fault cordova-res android --skip-config --copy

Cordova -res not creating the app icon and splash, showing again and again, this error-

aaaa@aaa-Mac-mini aaa % cordova-res android --skip-config --copy
zsh: segmentation fault cordova-res android --skip-config --copy

Can anyone tell us what went wrong, and any solution?