According to the information obtained from here(https://facebook.github.io/react-native/docs/getting-started.html#content), I was going to step on the stage.
But I was faced with a problem.
The problem arose when the input as shown below.
react-native init ReactLog
In the console window, the following error messages are shown.
This will walk you through creating a new React Native project in F:\Android\Rea
ctLog
Installing react-native package from npm...
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at F (C:\Program Files\nodejs\node_modules\npm\node_mo
dules\which\which.js:78:19)
npm WARN addRemoteGit at E (C:\Program Files\nodejs\node_modules\npm\node_mo
dules\which\which.js:82:29)
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modul
es\which\which.js:93:16
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN addRemoteGit facebook/react#b4e74e3 resetting remote C:\Users\Reddol\A
ppData\Roaming\npm-cache\_git-remotes\git-github-com-facebook-react-git-b4e74e3-
c92d21d2e268ee43029cdd9b3cd02392 because of error: { [Error: not found: git] cod
e: 'ENOGIT' }
npm ERR! git clone --template=C:\Users\Reddol\AppData\Roaming\npm-cache\_git-rem
otes\_templates --mirror git://github.com/facebook/react.git C:\Users\Reddol\App
Data\Roaming\npm-cache\_git-remotes\git-github-com-facebook-react-git-b4e74e3-c9
2d21d2e268ee43029cdd9b3cd02392: undefined
npm ERR! git clone --template=C:\Users\Reddol\AppData\Roaming\npm-cache\_git-rem
otes\_templates --mirror git://github.com/facebook/react.git C:\Users\Reddol\App
Data\Roaming\npm-cache\_git-remotes\git-github-com-facebook-react-git-b4e74e3-c9
2d21d2e268ee43029cdd9b3cd02392: undefined
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at F (C:\Program Files\nodejs\node_modules\npm\node_mo
dules\which\which.js:78:19)
npm WARN addRemoteGit at E (C:\Program Files\nodejs\node_modules\npm\node_mo
dules\which\which.js:82:29)
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modul
es\which\which.js:93:16
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN addRemoteGit facebook/react#b4e74e3 resetting remote C:\Users\Reddol\A
ppData\Roaming\npm-cache\_git-remotes\git-https-github-com-facebook-react-git-b4
e74e3-7ac9f0e64c0248b5a8c1d179336b39d8 because of error: { [Error: not found: gi
t] code: 'ENOGIT' }
npm ERR! git clone --template=C:\Users\Reddol\AppData\Roaming\npm-cache\_git-rem
otes\_templates --mirror https://github.com/facebook/react.git C:\Users\Reddol\A
ppData\Roaming\npm-cache\_git-remotes\git-https-github-com-facebook-react-git-b4
e74e3-7ac9f0e64c0248b5a8c1d179336b39d8: undefined
npm ERR! git clone --template=C:\Users\Reddol\AppData\Roaming\npm-cache\_git-rem
otes\_templates --mirror https://github.com/facebook/react.git C:\Users\Reddol\A
ppData\Roaming\npm-cache\_git-remotes\git-https-github-com-facebook-react-git-b4
e74e3-7ac9f0e64c0248b5a8c1d179336b39d8: undefined
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at F (C:\Program Files\nodejs\node_modules\npm\node_mo
dules\which\which.js:78:19)
npm WARN addRemoteGit at E (C:\Program Files\nodejs\node_modules\npm\node_mo
dules\which\which.js:82:29)
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modul
es\which\which.js:93:16
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN addRemoteGit facebook/react#b4e74e3 resetting remote C:\Users\Reddol\A
ppData\Roaming\npm-cache\_git-remotes\git-github-com-facebook-react-git-b4e74e3-
a74af502d8e5579c42e0f6b0488923ce because of error: { [Error: not found: git] cod
e: 'ENOGIT' }
npm ERR! git clone --template=C:\Users\Reddol\AppData\Roaming\npm-cache\_git-rem
otes\_templates --mirror git#github.com:facebook/react.git C:\Users\Reddol\AppDa
ta\Roaming\npm-cache\_git-remotes\git-github-com-facebook-react-git-b4e74e3-a74a
f502d8e5579c42e0f6b0488923ce: undefined
npm ERR! git clone --template=C:\Users\Reddol\AppData\Roaming\npm-cache\_git-rem
otes\_templates --mirror git#github.com:facebook/react.git C:\Users\Reddol\AppDa
ta\Roaming\npm-cache\_git-remotes\git-github-com-facebook-react-git-b4e74e3-a74a
f502d8e5579c42e0f6b0488923ce: undefined
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "react-native"
npm ERR! node v5.1.0
npm ERR! npm v3.3.12
npm ERR! code ENOGIT
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! Please include the following file with any support request:
npm ERR! F:\Android\ReactLog\npm-debug.log
`npm install --save react-native` failed
Install git tools for windows(http://git-scm.com/download/win) and make sure the git.exe is added the PATH environment variable.
Related
Hi npm install is failing as shown in the screenshot. I am using proxy and before the npm install, I have
Got the nodejs, Git downloaded and installed. the git version is 2.17.0.windows.1
ran npm config set for proxy and the registry. Got the .npmrc file created in C:\Users\user.
Any help would be appreciated.
Please find the npm install log:
user#trsrall2060597 MINGW64 /c/xyzsite/trs-b2b-ui (develop)
$ npm install
npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:204:12)
npm WARN addRemoteGit at emitTwo (events.js:106:13)
npm WARN addRemoteGit at ChildProcess.emit (events.js:191:7)
npm WARN addRemoteGit at maybeClose (internal/child_process.js:886:16)
npm WARN addRemoteGit at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
npm WARN addRemoteGit git+https://github.com/goutamsm/ng1-protractor.git resetting remote C:\Users\user\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-goutamsm-ng1-protractor-git-8bb1045c because of error: { Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:204:12)
npm WARN addRemoteGit at emitTwo (events.js:106:13)
npm WARN addRemoteGit at ChildProcess.emit (events.js:191:7)
npm WARN addRemoteGit at maybeClose (internal/child_process.js:886:16)
npm WARN addRemoteGit at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
npm WARN addRemoteGit killed: false,
npm WARN addRemoteGit code: 1,
npm WARN addRemoteGit signal: null,
npm WARN addRemoteGit cmd: 'git -c core.longpaths=true config --get remote.origin.url' }
npm ERR! git clone --template=C:\Users\user\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/goutamsm/ng1-protractor.git C:\Users\user\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-goutamsm-ng1-protractor-git-8bb1045c: Cloning into bare repository 'C:\Users\user\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-goutamsm-ng1-protractor-git-8bb1045c'...
npm ERR! git clone --template=C:\Users\user\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/goutamsm/ng1-protractor.git C:\Users\user\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-goutamsm-ng1-protractor-git-8bb1045c: fatal: unable to access 'https://github.com/goutamsm/ng1-protractor.git/': Received HTTP code 407 from proxy after CONNECT
npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! code 128
npm ERR! Command failed: git -c core.longpaths=true clone --template=C:\Users\user\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/goutamsm/ng1-protractor.git C:\Users\user\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-goutamsm-ng1-protractor-git-8bb1045c
npm ERR! Cloning into bare repository 'C:\Users\user\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-goutamsm-ng1-protractor-git-8bb1045c'...
npm ERR! fatal: unable to access 'https://github.com/goutamsm/ng1-protractor.git/': Received HTTP code 407 from proxy after CONNECT
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\xyzsite\trs-b2b-ui\npm-debug.log
I want to use react-navigation as mentioned on several tutorials and official documents to use react navigation you have to install it using yarn or NPM.
I tried both and getting same error.
YARN
>yarn add react-navigation
yarn add v1.5.1
[1/4] Resolving packages...
error An unexpected error occurred: "Couldn't find the binary git".
info If you think this is a bug, please open a bug report with the information provided in "D:\\projects\\ReduxDemo\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
NPM
>yarn add react-navigation
yarn add v1.5.1
[1/4] Resolving packages...
error An unexpected error occurred: "Couldn't find the binary git".
info If you think this is a bug, please open a bug report with the information provided in "D:\\projects\\ReduxDemo\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
D:\projects\ReduxDemo>npm install --save react-navigation
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at getNotFoundError (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:14:12)
npm WARN addRemoteGit at F (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:69:19)
npm WARN addRemoteGit at E (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:81:29)
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:90:16
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\index.js:44:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\windows.js:29:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15)
npm WARN addRemoteGit react-navigation/react-native-tab-view resetting remote C:\Users\AppData\Roaming\npm-cache\_git-remotes\git-github-com-react-navigation-react-native-tab-view-git-9747c439 because of error: { Error: not found: git
npm WARN addRemoteGit at getNotFoundError (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:14:12)
npm WARN addRemoteGit at F (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:69:19)
npm WARN addRemoteGit at E (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:81:29)
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:90:16
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\index.js:44:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\windows.js:29:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15) code: 'ENOGIT' }
npm ERR! git clone --template=C:\Users\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/react-navigation/react-native-tab-view.git C:\Users\AppData\Roaming\npm-cache\_git-remotes\git-github-com-react-navigation-react-native-tab-view-git-9747c439: undefined
npm ERR! git clone --template=C:\Users\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/react-navigation/react-native-tab-view.git C:\Users\AppData\Roaming\npm-cache\_git-remotes\git-github-com-react-navigation-react-native-tab-view-git-9747c439: undefined
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at getNotFoundError (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:14:12)
npm WARN addRemoteGit at F (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:69:19)
npm WARN addRemoteGit at E (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:81:29)
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:90:16
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\index.js:44:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\windows.js:29:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15)
npm WARN addRemoteGit react-navigation/react-native-tab-view resetting remote C:\Users\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-react-navigation-react-native-tab-view-git-0c5c085d because of error: { Error: not found: git
npm WARN addRemoteGit at getNotFoundError (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:14:12)
npm WARN addRemoteGit at F (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:69:19)
npm WARN addRemoteGit at E (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:81:29)
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:90:16
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\index.js:44:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\windows.js:29:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15) code: 'ENOGIT' }
npm ERR! git clone --template=C:\Users\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/react-navigation/react-native-tab-view.git C:\Users\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-react-navigation-react-native-tab-view-git-0c5c085d: undefined
npm ERR! git clone --template=C:\Users\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/react-navigation/react-native-tab-view.git C:\Users\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-react-navigation-react-native-tab-view-git-0c5c085d: undefined
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at getNotFoundError (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:14:12)
npm WARN addRemoteGit at F (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:69:19)
npm WARN addRemoteGit at E (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:81:29)
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:90:16
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\index.js:44:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\windows.js:29:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15)
npm WARN addRemoteGit react-navigation/react-native-tab-view resetting remote C:\Users\AppData\Roaming\npm-cache\_git-remotes\git-github-com-react-navigation-react-native-tab-view-git-b354594d because of error: { Error: not found: git
npm WARN addRemoteGit at getNotFoundError (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:14:12)
npm WARN addRemoteGit at F (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:69:19)
npm WARN addRemoteGit at E (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:81:29)
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:90:16
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\index.js:44:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\windows.js:29:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15) code: 'ENOGIT' }
npm ERR! git clone --template=C:\Users\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git#github.com:react-navigation/react-native-tab-view.git C:\Users\AppData\Roaming\npm-cache\_git-remotes\git-github-com-react-navigation-react-native-tab-view-git-b354594d: undefined
npm ERR! git clone --template=C:\Users\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git#github.com:react-navigation/react-native-tab-view.git C:\Users\AppData\Roaming\npm-cache\_git-remotes\git-github-com-react-navigation-react-native-tab-view-git-b354594d: undefined
npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "react-navigation"
npm ERR! node v6.11.4
npm ERR! npm v3.10.10
npm ERR! code ENOGIT
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! Please include the following file with any support request:
npm ERR! D:\projects\ReduxDemo\npm-debug.log
I had the same problem a few days ago. I solved it by installing "Git" you can get it here: Git Download
While installing it there will be a option in the install instruction you should check. It something like add git to cmd or path. After that you should try installing the navigation package again. It worked for me but i dont know if its gonna work for you.
You need to have git installed previously, and should be available in path
You can check it using git --version.
Till then you can directly reference the package yarn add react-navigation#1.5.1 for a specific version
i have also the same problem it have conflict with other version of libraries you used in your project i was using react-native-image-picker.so it gives error.
so when in install the below version then it works fine.
npm install --save react-navigation#1.0.0-beta.27
this solve my problem
Assuming that you have installed GIT, Goto the dir you want to run, then right click on git bash here and then run the command.
It worked for me!
I'm trying to install Stencil CLI/Framework in Windows follwing these instructions https://stencil.bigcommerce.com/docs/installing-stencil-cli-1. I have all the prerequisites installed and configured. I configured my proxy in both npm and git bash.
Every time I run the following:
npm install -g #bigcommerce/stencil-cli
I get the following error:
npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:205:12)
npm WARN addRemoteGit at emitTwo (events.js:106:13)
npm WARN addRemoteGit at ChildProcess.emit (events.js:194:7)
npm WARN addRemoteGit at maybeClose (internal/child_process.js:899:16)
npm WARN addRemoteGit at Socket.<anonymous> (internal/child_process.js:342:11)
npm WARN addRemoteGit at emitOne (events.js:96:13)
npm WARN addRemoteGit at Socket.emit (events.js:191:7)
npm WARN addRemoteGit at Pipe._handle.close [as _onclose] (net.js:511:12)
npm WARN addRemoteGit git://github.com/bigcommerce/browser-sync.git resetting remote C:\Users\jeverett\AppData\Roaming\npm-cache\_git-remotes\git-github-com-bigcommerce-browser-sync-git-b8c22efb because of error: { Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:205:12)
npm WARN addRemoteGit at emitTwo (events.js:106:13)
npm WARN addRemoteGit at ChildProcess.emit (events.js:194:7)
npm WARN addRemoteGit at maybeClose (internal/child_process.js:899:16)
npm WARN addRemoteGit at Socket.<anonymous> (internal/child_process.js:342:11)
npm WARN addRemoteGit at emitOne (events.js:96:13)
npm WARN addRemoteGit at Socket.emit (events.js:191:7)
npm WARN addRemoteGit at Pipe._handle.close [as _onclose] (net.js:511:12)
npm WARN addRemoteGit killed: false,
npm WARN addRemoteGit code: 1,
npm WARN addRemoteGit signal: null,
npm WARN addRemoteGit cmd: 'git -c core.longpaths=true config --get remote.origin.url' }
npm WARN deprecated github#8.2.1: 'github' has been renamed to '#octokit/rest' (https://git.io/vNB11)
npm ERR! git clone --template=C:\Users\jeverett\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/bigcommerce/browser-sync.git C:\Users\jeverett\AppData\Roaming\npm-cache\_git-remotes\git-github-com-bigcommerce-browser-sync-git-b8c22efb: Cloning into bare repository 'C:\Users\jeverett\AppData\Roaming\npm-cache\_git-remotes\git-github-com-bigcommerce-browser-sync-git-b8c22efb'...
npm ERR! git clone --template=C:\Users\jeverett\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/bigcommerce/browser-sync.git C:\Users\jeverett\AppData\Roaming\npm-cache\_git-remotes\git-github-com-bigcommerce-browser-sync-git-b8c22efb: fatal: unable to connect to github.com:
npm ERR! git clone --template=C:\Users\jeverett\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/bigcommerce/browser-sync.git C:\Users\jeverett\AppData\Roaming\npm-cache\_git-remotes\git-github-com-bigcommerce-browser-sync-git-b8c22efb: github.com[0: 192.30.253.112]: errno=No error
npm ERR! git clone --template=C:\Users\jeverett\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/bigcommerce/browser-sync.git C:\Users\jeverett\AppData\Roaming\npm-cache\_git-remotes\git-github-com-bigcommerce-browser-sync-git-b8c22efb: github.com[1: 192.30.253.113]: errno=No error
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "#bigcommerce/stencil-cli"
npm ERR! node v7.10.0
npm ERR! npm v4.2.0
npm ERR! code 128
npm ERR! Command failed: git -c core.longpaths=true clone --template=C:\Users\jeverett\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/bigcommerce/browser-sync.git C:\Users\jeverett\AppData\Roaming\npm-cache\_git-remotes\git-github-com-bigcommerce-browser-sync-git-b8c22efb
npm ERR! Cloning into bare repository 'C:\Users\jeverett\AppData\Roaming\npm-cache\_git-remotes\git-github-com-bigcommerce-browser-sync-git-b8c22efb'...
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 192.30.253.112]: errno=No error
npm ERR! github.com[1: 192.30.253.113]: errno=No error
npm(Err!)
npm(Err!)
npm(Err!)
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
Any ideas?
This command fixed my issue:
git config --global url."https://".insteadOf git://
React native work well for me.
I install native base with this:
$ npm install -g native-base-cli
Then I create new project with this:
$ react-native init T
$ cd T
Then after this command I have the error:
$ npm install native-base --save
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at getNotFoundError (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:14:12)
npm WARN addRemoteGit at F (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:69:19)
npm WARN addRemoteGit at E (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:81:29)
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:90:16
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\index.js:44:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\windows.js:29:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15)
npm WARN addRemoteGit git+https://github.com/GeekyAnts/react-native-drawer.git resetting remote C:\Users\ibnkh\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-GeekyAnts-react-native-drawer-git-5dbe324d because of error: { Error: not found: git
npm WARN addRemoteGit at getNotFoundError (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:14:12)
npm WARN addRemoteGit at F (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:69:19)
npm WARN addRemoteGit at E (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:81:29)
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:90:16
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\index.js:44:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\windows.js:29:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15) code: 'ENOGIT' }
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at getNotFoundError (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:14:12)
npm WARN addRemoteGit at F (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:69:19)
npm WARN addRemoteGit at E (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:81:29)
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:90:16
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\index.js:44:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\windows.js:29:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15)
npm WARN addRemoteGit git+https://github.com/GeekyAnts/react-native-keyboard-aware-scroll-view.git resetting remote C:\Users\ibnkh\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-GeekyAnts-react-native-keyboard-aware-scroll-view-git-8603b9f3 because of error: { Error: not found: git
npm WARN addRemoteGit at getNotFoundError (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:14:12)
npm WARN addRemoteGit at F (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:69:19)
npm WARN addRemoteGit at E (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:81:29)
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:90:16
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\index.js:44:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\which\node_modules\isexe\windows.js:29:5
npm WARN addRemoteGit at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15) code: 'ENOGIT' }
npm ERR! git clone --template=C:\Users\ibnkh\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/GeekyAnts/react-native-drawer.git C:\Users\ibnkh\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-GeekyAnts-react-native-drawer-git-5dbe324d: undefined
npm ERR! git clone --template=C:\Users\ibnkh\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/GeekyAnts/react-native-drawer.git C:\Users\ibnkh\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-GeekyAnts-react-native-drawer-git-5dbe324d: undefined
npm ERR! git clone --template=C:\Users\ibnkh\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/GeekyAnts/react-native-keyboard-aware-scroll-view.git C:\Users\ibnkh\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-GeekyAnts-react-native-keyboard-aware-scroll-view-git-8603b9f3: undefined
npm ERR! git clone --template=C:\Users\ibnkh\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/GeekyAnts/react-native-keyboard-aware-scroll-view.git C:\Users\ibnkh\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-GeekyAnts-react-native-keyboard-aware-scroll-view-git-8603b9f3: undefined
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "native-base" "--save"
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! code ENOGIT
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Projects\T\npm-debug.log
I think the problem in install of native base.
The steps I follow from here: https://docs.nativebase.io/docs/GetStarted.html
you need to install git as react native needs it to install
I'm trying to "angular-cli",
I type following on my command prompt (Administrator)
"npm install -g angular-cli#latest" i get following
C:\Windows\system32>npm install -g angular-cli#latest npm WARN addRemoteGit Error: not found: git npm WARN addRemoteGit at getNotFoundError (C:\Users\irfanyounis\AppData\Roam ing\npm\node_modules\npm\node_modules\which\which.js:14:12) npm WARN addRemoteGit at F (C:\Users\irfanyounis\AppData\Roaming\npm\node_mo dules\npm\node_modules\which\which.js:69:19) npm WARN addRemoteGit at E (C:\Users\irfanyounis\AppData\Roaming\npm\node_mo dules\npm\node_modules\which\which.js:81:29) npm WARN addRemoteGit at C:\Users\irfanyounis\AppData\Roaming\npm\node_modul es\npm\node_modules\which\which.js:90:16 npm WARN addRemoteGit at C:\Users\irfanyounis\AppData\Roaming\npm\node_modul es\npm\node_modules\which\node_modules\isexe\index.js:44:5 npm WARN addRemoteGit at C:\Users\irfanyounis\AppData\Roaming\npm\node_modul es\npm\node_modules\which\node_modules\isexe\windows.js:29:5 npm WARN addRemoteGit at C:\Users\irfanyounis\AppData\Roaming\npm\node_modul es\npm\node_modules\graceful-fs\polyfills.js:264:29 npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:82:15) npm WARN addRemoteGit webpack/compression-webpack-plugin#7e55907cd54a2e91b96d25 a660acc6a2a6453f54 resetting remote C:\Users\irfanyounis\AppData\Roaming\npm-cac he\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd5 4a2e91b96d25a660acc6a2a6453f54-ec76b2fe because of error: { [Error: not found: g it] code: 'ENOGIT' } npm ERR! git clone
--template=C:\Users\irfanyounis\AppData\Roaming\npm-cache\_gi t-remotes\_templates --mirror git://github.com/webpack/compression-webpack-plugi n.git C:\Users\irfanyounis\AppData\Roaming\npm-cache\_git-remotes\git-github-com
-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54
-ec76b2fe: undefined npm ERR! git clone --template=C:\Users\irfanyounis\AppData\Roaming\npm-cache\_gi t-remotes\_templates --mirror git://github.com/webpack/compression-webpack-plugi n.git C:\Users\irfanyounis\AppData\Roaming\npm-cache\_git-remotes\git-github-com
-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54
-ec76b2fe: undefined npm WARN addRemoteGit Error: not found: git npm WARN addRemoteGit at getNotFoundError (C:\Users\irfanyounis\AppData\Roam ing\npm\node_modules\npm\node_modules\which\which.js:14:12) npm WARN addRemoteGit at F (C:\Users\irfanyounis\AppData\Roaming\npm\node_mo dules\npm\node_modules\which\which.js:69:19) npm WARN addRemoteGit at E (C:\Users\irfanyounis\AppData\Roaming\npm\node_mo dules\npm\node_modules\which\which.js:81:29) npm WARN addRemoteGit at C:\Users\irfanyounis\AppData\Roaming\npm\node_modul es\npm\node_modules\which\which.js:90:16 npm WARN addRemoteGit at C:\Users\irfanyounis\AppData\Roaming\npm\node_modul es\npm\node_modules\which\node_modules\isexe\index.js:44:5 npm WARN addRemoteGit at C:\Users\irfanyounis\AppData\Roaming\npm\node_modul es\npm\node_modules\which\node_modules\isexe\windows.js:29:5 npm WARN addRemoteGit at C:\Users\irfanyounis\AppData\Roaming\npm\node_modul es\npm\node_modules\graceful-fs\polyfills.js:264:29 npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:82:15) npm WARN addRemoteGit webpack/compression-webpack-plugin#7e55907cd54a2e91b96d25 a660acc6a2a6453f54 resetting remote C:\Users\irfanyounis\AppData\Roaming\npm-cac he\_git-remotes\git-https-github-com-webpack-compression-webpack-plugin-git-7e55 907cd54a2e91b96d25a660acc6a2a6453f54-541c96f3 because of error: { [Error: not fo und: git] code: 'ENOGIT' } npm ERR! git clone
--template=C:\Users\irfanyounis\AppData\Roaming\npm-cache\_gi t-remotes\_templates --mirror https://github.com/webpack/compression-webpack-plu gin.git C:\Users\irfanyounis\AppData\Roaming\npm-cache\_git-remotes\git-https-gi thub-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2 a6453f54-541c96f3: undefined npm ERR! git clone
--template=C:\Users\irfanyounis\AppData\Roaming\npm-cache\_gi t-remotes\_templates --mirror https://github.com/webpack/compression-webpack-plu gin.git C:\Users\irfanyounis\AppData\Roaming\npm-cache\_git-remotes\git-https-gi thub-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2 a6453f54-541c96f3: undefined npm WARN addRemoteGit Error: not found: git npm WARN addRemoteGit at getNotFoundError (C:\Users\irfanyounis\AppData\Roam ing\npm\node_modules\npm\node_modules\which\which.js:14:12) npm WARN addRemoteGit at F (C:\Users\irfanyounis\AppData\Roaming\npm\node_mo dules\npm\node_modules\which\which.js:69:19) npm WARN addRemoteGit at E (C:\Users\irfanyounis\AppData\Roaming\npm\node_mo dules\npm\node_modules\which\which.js:81:29) npm WARN addRemoteGit at C:\Users\irfanyounis\AppData\Roaming\npm\node_modul es\npm\node_modules\which\which.js:90:16 npm WARN addRemoteGit at C:\Users\irfanyounis\AppData\Roaming\npm\node_modul es\npm\node_modules\which\node_modules\isexe\index.js:44:5 npm WARN addRemoteGit at C:\Users\irfanyounis\AppData\Roaming\npm\node_modul es\npm\node_modules\which\node_modules\isexe\windows.js:29:5 npm WARN addRemoteGit at C:\Users\irfanyounis\AppData\Roaming\npm\node_modul es\npm\node_modules\graceful-fs\polyfills.js:264:29 npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:82:15) npm WARN addRemoteGit webpack/compression-webpack-plugin#7e55907cd54a2e91b96d25 a660acc6a2a6453f54 resetting remote C:\Users\irfanyounis\AppData\Roaming\npm-cac he\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd5 4a2e91b96d25a660acc6a2a6453f54-e286d0b5 because of error: { [Error: not found: g it] code: 'ENOGIT' } npm ERR! git clone
--template=C:\Users\irfanyounis\AppData\Roaming\npm-cache\_gi t-remotes\_templates --mirror git#github.com:webpack/compression-webpack-plugin. git C:\Users\irfanyounis\AppData\Roaming\npm-cache\_git-remotes\git-github-com-w ebpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e 286d0b5: undefined npm ERR! git clone
--template=C:\Users\irfanyounis\AppData\Roaming\npm-cache\_gi t-remotes\_templates --mirror git#github.com:webpack/compression-webpack-plugin. git C:\Users\irfanyounis\AppData\Roaming\npm-cache\_git-remotes\git-github-com-w ebpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e 286d0b5: undefined npm ERR! Windows_NT 6.1.7600 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\irfanyounis\\App Data\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "angular- cli#latest" npm ERR! node v4.6.0 npm ERR! npm v3.10.9 npm ERR! code ENOGIT
npm ERR! not found: git npm ERR! npm ERR! Failed using git. npm ERR! This is most likely not a problem with npm itself. npm ERR! Please check if you have git installed and in your PATH.
npm ERR! Please include the following file with any support request: npm ERR! C:\Windows\system32\npm-debug.log
C:\Windows\system32>
my PATH in enviroemt variables is as follows
"C:\Users\irfanyounis\AppData\Roaming\npm;C:\Users\irfanyounis\AppData\Local\GitHub\PortableGit_284a859b0e6deba86edc624fef1e4db2aa8241a9\cmd "
I'm using windows 7 64 bit.!
As it says in error, you either dont have git installed or it is there but not available in PATH (I can't see it available in your path).
Please install GIT as admin, that will add it to PATH as well and then try reinstalling angular-cli