Oops, forgot to give Greg Whiteley (@whitty) the credit for authoring and sending the patch[1] for this bug in May 2015 to the upstream npm project on GitHub. [1] https://github.com/npm/npm/commit/d7271b8226712479cdd339bf85faf7e394923e0d Cheers, Anthony