I try to install React Navigation and it returns a denied permission error

0

I tried to install the React Navigation module in my project with the following command:

npm install --save react-navigation

But I get the following error:

npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone -q git://github.com/react-navigation/react-native-tab-view.git /home/diegomng/.npm/_cacache/tmp/git-clone-ad6cfd48
npm ERR! /home/diegomng/.npm/_cacache/tmp/git-clone-ad6cfd48/.git: Permissão negada
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/diegomng/.npm/_logs/2018-04-03T16_31_55_746Z-debug.log

My version of NodeJS: v9.6.1

NPM: 5.8.0

Yarn: 0.22

react-native-cli: 2.0.1

react-native: 0.54.0

    
asked by anonymous 03.04.2018 / 18:42

2 answers

0

I also had this problem with some React packages. If you are using the command terminal on your machine, try using the Git terminal.

Install Git suitable for your OS. After that you will have the Git CMD. Through it many errors like this can be avoided.

    
13.04.2018 / 15:33
0

Your problem is not with React, but with the package manager.

Try to use yarn , I already had this problem and with yarn it's pretty quiet.

    
23.04.2018 / 17:36