In my React Native project, I have a specific version of a library, specifically react-native-permissions@1.1.1
, that I need to use in the project. When I run npm i react-native-permissions@1.1.1
, everything works fine, but if I re-build the project with npm i
, even though package.json
has react-native-permission@1.1.1
, in package-lock.json
, it gets resolved to react-native-permissions@1.2.1
.
What I Want To Know:
a) Why would the actual version get resolved to 1.2.1 instead of 1.1.1?
b) Is there a way to enforce that npm i
will install 1.1.1 instead of 1.2.1?