You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
@kenany Yes, that covers more cases. To force installing a local tarball one can say install ./tarball-file-name, if that name exists in the registry, but the reverse is difficult; using user/name may also fail if user/name exists in cwd.
It’s my view that this adds additional complexity to story around package arguments as they’re passed to npm install. npm went through several variations on how it resolved local arguments when they were first added and the current behavior seemed to be the least confusing solution. The consensus of the CLI team is that this isn’t something we’re going to implement or accept as a pull request. As such, I’m going to close this issue, but thank you for bringing this up.
npm install module-name-on-npmjs-registry will fail if a file with the same name exists in cwd, but is not a valid module tarball. E.g.:
--- fail.
The text was updated successfully, but these errors were encountered: