invalid names in optional deps are an early error

It's hard for me to construct a scenario where an optional dependency
with a plainly invalid name failing to install is actually useful to
anyone, so I nerfed the relevant line in the test.
npm-package-arg replacements for split in install