Ensure named packages not in top level are marked as missing.
Merge pull request #8475 from christophebiocca/fix-npm-command

Ensure npm packages actually are installed in a reachable way.