I was installing ngx-quill and faced the same issue.
please make sure to check the supported versions.
For example - If you are using Angular 8, make sure you are installing the supported version. In case of ngx-quill, it will be
npm install ngx-quill@5.2.0