The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
strange `audit` and `install` behavior when package name is invalid
Does this only happen when the package name is invalid?
Yes, it does appear so.
Since this seems related to a bug, it’d be nice to get a more formal (and detailed, following template) bug report over in #bugs – and it would be -even better- if a patch was sent in to fix it. I think if you look more carefully at what’s causing this, the actual issue is likely fairly shallow.