Issues / warnings with React-native init (no-lockfile; connect2.x string is deprecated, reaction has an unmet peer dependency)

I use the init init reaction to initialize my project, and I get some warnings that I'm sure will come to bite me in the back later. If I don’t deal with them. Bold text refers to messages . I'm not quite sure what to do with them, can someone tell me how to fix it / if I do something wrong, do I get these messages / warnings? Beginner friendly / light on terminological answer is welcome as I am new to reacting to native

yarn add v0.27.5
Information The lock file was not found.
[1/4] Resolution of packets ...
warning response-native> connect@2.30.2 : 2.x connection is out of date
[2/4] Receiving packages ...
[3/4] Linking dependencies ...
the warning " react-native@0.47.2 " has an unsatisfied peer relationship "react @ 16.0.0-alpha.12".

This initiative initiative team also takes a very long time (~ 5 minutes per use). Do the above warnings cause a long startup time or something else?

+5
source share
3 answers

information is just some information, not a problem

and for two warnings :

  • outdated connection

    about the outdated version of the connection, I also came up with it because the native response depends on the connection, and the latest version for the response is 0.49.3, it uses connect @ 2.30.2, it’s a little outdated, and there someone made pr about this problem , Github: pr , but was not merged due to some testing coverage, so now just ignore this warning;
  • insecure peer communication

    this is due to some outdated packages.
+7
source

All I have found to resolve these warnings is:

1) Update all responsive packages

npm install react-native@latest --save 
  • This can often fix issues with legacy / outdated npm packages.

2) Install response@16.0.0-alpha.12

 npm install react@16.0.0-alpha.12 

3) Update connect@2.30.2

 npm update connect@2.30.2 

Again, warnings # 1 and # 2 are pretty common

+3
source

"No lockfile found" simply means that the installation has not been started before; The lockfile keeps track of the exact versions of installed packages.

Finding the other two is how I got here, so I will not help with this (for now) .; -.)

+1
source

Source: https://habr.com/ru/post/1271119/


All Articles