Hi ,
I'm trying to use this package,
npm i react-native-camera --save
but then I got this error:
> [email protected] postinstall /Users/hfli/workspace/git/Okapia/Okapia/node_modules/react-native-camera
> opencollective postinstall
[server error] Cannot load the stats for react-native-camera – please try again later
Thanks for installing react-native-camera 🙏
Please consider donating to our open collective
to help us maintain this package.
👉 Donate: https://opencollective.com/react-native-camera/donate
+ [email protected]
added 2 packages, removed 662 packages and updated 43 packages in 11.998s
I have tried several times but got the same error. So how could I fix this?
Update: I successfully installed it by using yarn
`
yarn add react-native-camera
but I still can't figure out why npm install failed.
Facing the same issue, but need to use npm.
Any suggestions?
npm cache verify
npm cache clean --force
Didn't help
$ node -v
v9.4.0
$ npm -v
5.6.0
$ npm install -g opencollective
solved for me
Most helpful comment
$ npm install -g opencollectivesolved for me