Problem with installation of the Reactnative-FBSDK package (Authentication via Facebook)

Asked

Viewed 170 times

0

I’m studying the type of authentication in firebase, but I was only able to make work the standard authentication (email/password); I’m having problems to authenticate via Facebook, because the installation is giving error. I used the command "NPM install React-Native-fbsdk" to do the installation it returns to me:

inserir a descrição da imagem aqui

and When I have link to the tool using " React-Native link React-Native-fbsdk" it does not recognize the command.

I’m starting at Native, so I needed to know if I’m doing something wrong.

NOTE: the NPM install React-Native-fbsdk command was performed inside the project folder and after using this command I can’t open the project anymore by the emulator.

  • Could you update the title of your question? Sorry, but after reading it has nothing to do with the content. Are you giving wrong link? Uses dash instead of equal for package name: react-native link react-native-fbsdk. It is also worth noting that Voce only installed the package locally as a dependency of the project, but not globally.

  • @nbjhope When you talk about installing globally, would install where? in C:? and then install in the project? , would that?. Regarding the link, particularly I did not understand how it should be done, and I did not find documentation on, so I honestly do not know if I did it right or not. OBS: Regarding the "dash", I typed wrong when preparing the question.

  • To install any package globally, just add the -g option: npm install -g nome-do-pacote

1 answer

0

According to the documentation, the installation method of the package is thus, within the folder of the new project:

react-native install react-native-fbsdk
react-native link react-native-fbsdk

(Ref https://github.com/facebook/react-native-fbsdk)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.