[BUG] npm install <name>
does not install latest tag if it is deprecated, and pre-release
#7873
Closed
2 tasks done
Labels
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Expected Behavior
I would expect this to succeed and install 0.1.0-preview.2, because it is the
latest
dist-tag.Or, the command should error with a clear message because the version is deprecated and prerelease, which should be strongly discouraged from being used. However, ETARGET error is wrong.
It appears to only happen with deprecated prerelease versions. If the latest tag is 1.0.0 and deprecated npm will install it.
npm will even install a different, non prerelease, version
Steps To Reproduce
{}
Or
@aws-sdk/add-glacier-checksum-headers-browser
Environment
; none
The text was updated successfully, but these errors were encountered: