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
I have a package which has a prerelease tag in its version: 0.1.2-snapshot.125. In package.json any version (*) is accepted. This is incorrectly marked as an error.
The rationale is that by default version ranges should assume people want stable versions of packages; if you want to allow pre-release ones, you need to be explicit and even being explicit that you want to accept 1.0.0-beta doesn't mean 1.0.1-beta gets accepted:
That said, if you have * as a version range in package.json, npm install installs the pre-release version if none other is available and doesn't even print any warning (at least with npm 4.2.0). So relaxing that requirement sounds reasonable.
I have a package which has a prerelease tag in its version:
0.1.2-snapshot.125
. Inpackage.json
any version (*
) is accepted. This is incorrectly marked as an error.package-name: installed: 0.1.2-snapshot.125, expected: *
The text was updated successfully, but these errors were encountered: