React-native-camera: npm install failed:[server error] Cannot load the stats for react-native-camera

Created on 27 Jul 2017  ·  3Comments  ·  Source: react-native-camera/react-native-camera

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?

Most helpful comment

$ npm install -g opencollective

solved for me

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TylerKirby picture TylerKirby  ·  3Comments

nonameolsson picture nonameolsson  ·  3Comments

grkemtneri picture grkemtneri  ·  3Comments

Fernando-Parise picture Fernando-Parise  ·  3Comments

masrc picture masrc  ·  3Comments