FS#63011 - [npm] Apply fix for npm outdated --global

Attached to Project: Arch Linux
Opened by kkl2401 (kkl2401) - Wednesday, 26 June 2019, 11:09 GMT
Last edited by Antonio Rojas (arojas) - Friday, 26 July 2019, 17:16 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When running
npm outdated --global
the result is
npm ERR! Cannot read property 'length' of undefined

From https://stackoverflow.com/questions/55172700/npm-outdated-g-error-cannot-read-property-length-of-undefined I understand that there is a trivial fix for that -- https://github.com/npm/cli/commit/d07547154eb8a88aa4fde8a37e128e1e3272adc1#diff-3d20499d58f14c6f1edfe93d8ba8a8a2 -- which unfortunately still hasn't make it to the upstream release. Could we include it?


Additional info:
* package version(s): 6.9.0-1
* link to upstream bug report, if any: https://npm.community/t/npm-outdated-throw-an-error-cannot-read-property-length-of-undefined/5929

Steps to reproduce:
npm outdated --global
This task depends upon

Closed by  Antonio Rojas (arojas)
Friday, 26 July 2019, 17:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  6.10.2

Loading...