Cypress – error occurs when I installed ‘del’ module, cant open cypress

I installed del module:
https://docs.cypress.io/api/plugins/after-spec-api#Delete-the-recorded-video-if-the-spec-passed

then I configured cypress config but this line:

const del = require('del')

makes that cypress is not working (I cant even select any browser):
enter image description here
enter image description here

When I commented out this line (const del = require(‘del’)), cypress worked normally.

How can I fix it?