2

Hey there!

So, I'm testing React-Native and this problem have come up, and not sure what it wants.

I have upgraded it, and also download latest versions.

This is the error:

npm WARN react-native-camera@0.6.0 requires a peer of react@>=15.4.0 but none was installed.

It won't allow me to download it running the following command

npm install react-native-camera --save

Thanks for your time.

AVI
  • 5,516
  • 5
  • 29
  • 38
Julius'Web
  • 83
  • 1
  • 1
  • 12

1 Answers1

1

Hey i had the same problem with react native camera

First make sure the version is up to date.Either latest or next. Unless update it as

npm install npm@latest -g

Then reinstall camera again(No need to uninstall anything, because it is not installed yet)

Here is the same issue that i opened in github now Closed because it solved the problem :)

EDIT:

i'm sure you got this error when you start to run

npm install react-native-camera@https://github.com/lwansbrough/react-native-camera.git --save

command right ? so it failed and never installed so, what you have to do is run command

npm install npm@latest -g

then run

npm install react-native-camera@https://github.com/lwansbrough/react-native-camera.git --save

back again

AVI
  • 5,516
  • 5
  • 29
  • 38
  • Hey, thanks for reaching out! I did do this and to tried again just to clarify, however, still the same old message. I wonder what I might be doing wrong... Cheers – Julius'Web Apr 11 '17 at 10:48
  • Hi mate, I tried the following solution but still no luck. I will try to experiment and will see if it works out :)) Thanks for your time man! (Will report back when fixed) – Julius'Web Apr 13 '17 at 13:09