mcnamee / react-native-starter-kit

:rocket: A React Native boilerplate app to get you up and running very, very quickly :rocket:
MIT License
3.35k stars 865 forks source link

Not able to do npm install from master #179

Closed dynamicsingh closed 6 years ago

dynamicsingh commented 6 years ago

Help us reproduce - tell us about your environment

  1. Mac OS High Sierra npm 6.2 node 8.10

Steps to reproduce

  1. npm install

Expected result

  1. should have installed the node modules

Actual result

  1. [Screenshot, logs]

Bhupinders-MacBook-Pro-2:react-native-starter-kit bhupindersingh$ sudo npm install npm ERR! code 1 npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master git://github.com/react-navigation/react-native-tab-view.git /Users/bhupindersingh/.npm/_cacache/tmp/git-clone-dec15263 npm ERR! /Users/bhupindersingh/.npm/_cacache/tmp/git-clone-dec15263/.git: Permission denied npm ERR!

npm ERR! A complete log of this run can be found in: npm ERR! /Users/bhupindersingh/.npm/_logs/2018-07-16T21_49_03_098Z-debug.log


on doing 
cat /Users/bhupindersingh/.npm/_logs/2018-07-16T21_49_03_098Z-debug.log

21 verbose stack Error: Command failed: /usr/bin/git clone --depth=1 -q -b master git://github.com/react-navigation/react-native-tab-view.git /Users/bhupindersingh/.npm/_cacache/tmp/git-clone-dec15263 21 verbose stack /Users/bhupindersingh/.npm/_cacache/tmp/git-clone-dec15263/.git: Permission denied 21 verbose stack 21 verbose stack at ChildProcess.exithandler (child_process.js:275:12) 21 verbose stack at emitTwo (events.js:126:13) 21 verbose stack at ChildProcess.emit (events.js:214:7) 21 verbose stack at maybeClose (internal/child_process.js:925:16) 21 verbose stack at Socket.stream.socket.on (internal/child_process.js:346:11) 21 verbose stack at emitOne (events.js:116:13) 21 verbose stack at Socket.emit (events.js:211:7) 21 verbose stack at Pipe._handle.close [as _onclose] (net.js:567:12) 22 verbose cwd /Applications/XAMPP/xamppfiles/htdocs/1.WORK/BOILER_PLATES/REACTNATIVE/react-native-expo-17Juk/react-native-starter-kit 23 verbose Darwin 17.5.0 24 verbose argv "/Users/bhupindersingh/.nvm/versions/v8.10.0/bin/node" "/Users/bhupindersingh/.nvm/versions/v8.10.0/bin/npm" "install" 25 verbose node v8.10.0 26 verbose npm v6.2.0 27 error code 1 28 error Command failed: /usr/bin/git clone --depth=1 -q -b master git://github.com/react-navigation/react-native-tab-view.git /Users/bhupindersingh/.npm/_cacache/tmp/git-clone-dec15263 28 error /Users/bhupindersingh/.npm/_cacache/tmp/git-clone-dec15263/.git: Permission denied 29 verbose exit [ 1, true ]


have also tried giving 777 permission to /Users/bhupindersingh/.npm/_cacache/tmp/, but not working
pmespresso commented 6 years ago

have you tried yarn?