Skip to content

err.response undefined #8

Description

@mattpr
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions