Fail on empty name

Trying to install a package with an empty name globally leads to
removing all global node modules.