react问题You must install peer dependencies yourself.

 

npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
 
 
Solution
 
Delete the root directory of the following folder node_modules
 
Then re-execute 'npm install', so that related components will depend download the installation is complete, the problem is solved
 
 
 
 
to sum up
1. Is it possible to consider later NPM while loading the setup components due reactnative upgraded, resulting in failed to load.
 
'Npm -v' command to see npm version 4.xx
 
With 'npm install npm -g' command to upgrade npm (5.xx)
 
2. NPM probably load the new version react, react_native components such as fashion changed, npm version on my older machine, does not support!
 
3. There may have inconsistent versions will be able to reload deleted
 

Guess you like

Origin www.cnblogs.com/iOS-mt/p/11115305.html