Uploaded image for project: 'Magnolia CLI'
  1. Magnolia CLI
  2. NPMCLI-239

ERR! Cannot read property 'status' of undefined

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 4.0.0
    • 3.1.0
    • Yes
    • Maintenance 7
    • 1

      A bug reported by multiple users in the comments of NPMCLI-227 makes jumpstart fail.

      It looks like there is some sort of HTTP error to begin with, but that the snippet handling errors fails early due to an undefined object, and we therefore do not know what actually happened.

      I would suggest making the following block safer with checks on err, err.response and err.response.status: https://git.magnolia-cms.com/projects/BUILD/repos/npm-cli/browse/lib/download.js#29-35

        Acceptance criteria

              fgrilli Federico Grilli
              mmichel Maxime Michel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD