yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.37k stars 2.72k forks source link

Yarn install wrong package version from github #8978

Closed tanlucvo closed 10 months ago

tanlucvo commented 10 months ago

This is my yarn.lock file, i install react-native-navigation ver 7.26.0 then it resolved version 7.37.0

image
merceyz commented 10 months ago

That's how caret ranges work, see https://github.com/npm/node-semver/tree/cce61804ba6f997225a1267135c06676fe0524d2#caret-ranges-123-025-004