register static method
Registers a single dep.
If a dependency with the same NpmDependency.specifier already exists in the registry, the previous registration is replaced.
Implementation
static void register(NpmDependency dep) {
_deps[dep.specifier] = dep;
}