android - npm WARN addRemoteGit Error: not found: git -
i followed react native official docs step step, executed command react-native init medfirstrn
windows cmd, received following error:
d:\projects>react-native init medfirstrn walk through creating new react native project in d:\projects\medfirstrn installing react-native package npm... npm warn addremotegit error: not found: git npm warn addremotegit @ f (c:\android\nodejs\node_modules\npm\node_modules\which\which.js:73:28) npm warn addremotegit @ e (c:\android\nodejs\node_modules\npm\node_modules\which\which.js:76:29) npm warn addremotegit @ c:\android\nodejs\node_modules\npm\node_modules\which\which.js:84:16 npm warn addremotegit @ fsreqwrap.oncomplete (fs.js:82:15) npm warn addremotegit git://github.com/facebook/react.git#b4e74e38e43ac53af8acd62c78c9213be0194245 resetting remote c:\users\moughaoui\appdata\roaming\npm-cache\_git-r emotes\git-github-com-facebook-react-git-b4e74e38e43ac53af8acd62c78c9213be0194245-c92d21d2e268ee43029cdd9b3cd02392 because of error: { [error: not found: git] code: 'en ogit' } npm err! git clone --template=c:\users\moughaoui\appdata\roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/facebook/react.git c:\users\moughaoui\appda ta\roaming\npm-cache\_git-remotes\git-github-com-facebook-react-git-b4e74e38e43ac53af8acd62c78c9213be0194245-c92d21d2e268ee43029cdd9b3cd02392: undefined npm err! git clone --template=c:\users\moughaoui\appdata\roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/facebook/react.git c:\users\moughaoui\appda ta\roaming\npm-cache\_git-remotes\git-github-com-facebook-react-git-b4e74e38e43ac53af8acd62c78c9213be0194245-c92d21d2e268ee43029cdd9b3cd02392: undefined npm err! windows_nt 6.1.7601 npm err! argv "c:\\android\\nodejs\\node.exe" "c:\\android\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "react-native" npm err! node v5.0.0 npm err! npm v3.3.6 npm err! code enogit npm err! not found: git npm err! npm err! failed using git. npm err! not problem npm itself. npm err! please check if have git installed , in path. npm err! please include following file support request: npm err! d:\projects\medfirstrn\npm-debug.log `npm install --save react-native` failed d:\projects>
can please?
when execute command git shell works.
make sure install git run git windows command prompt
option selected. option add git executable path
seems missing , causing error.
check answer https://stackoverflow.com/a/21614660/157575 more details.
Comments
Post a Comment