TypeError: Cannot read properties of undefined (reading 'status')
at node_modules/get-pkg/index.js:48:24
Apparently there are cases where the err does not include a response property.
Could be due to npm being down or whatever, a user can implement retry on their end.
But running over a small handful of repos I've seen this multiple times...so it is fairly common case and could be handled better in the lib. I'm hitting this with get-pkgs (passing array of package names)...so I also don't know which specific package is having trouble or whether it is a temporary issue.
Apparently there are cases where the
errdoes not include aresponseproperty.Could be due to npm being down or whatever, a user can implement retry on their end.
But running over a small handful of repos I've seen this multiple times...so it is fairly common case and could be handled better in the lib. I'm hitting this with
get-pkgs(passing array of package names)...so I also don't know which specific package is having trouble or whether it is a temporary issue.