4.4.2 introduces a breaking change that the variable in a catch clause is now `unknown` type. So, we need to cast the `e`, `err`, or `error` variables to type `Error`.
This adds some forced resolutions to ensure that vulnerable versions of packages are not installed.