cli icon indicating copy to clipboard operation
cli copied to clipboard

can't deploy react app in github

Open Tej2407 opened this issue 6 years ago • 4 comments

events.js:177 throw er; // Unhandled 'error' event ^

Error: spawn git ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19) at onErrorNT (internal/child_process.js:456:16) at processTicksAndRejections (internal/process/task_queues.js:84:9) Emitted 'error' event at: at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12) at onErrorNT (internal/child_process.js:456:16) at processTicksAndRejections (internal/process/task_queues.js:84:9) { errno: 'ENOENT', code: 'ENOENT', syscall: 'spawn git', path: 'git', spawnargs: [ 'config', 'user.name' ] } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] deploy: gh-pages -b master -d build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] deploy script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\User\AppData\Roaming\npm-cache_logs\2019-05-31T06_48_16_615Z-debug.log

Tej2407 avatar May 31 '19 07:05 Tej2407

having same issue

Rexman17 avatar Aug 05 '19 01:08 Rexman17

Others mentioned here to install Git in order to fix the issue https://github.com/facebook/create-react-app/issues/8243#issuecomment-569149918

SystemDZ avatar Sep 05 '20 03:09 SystemDZ

having same issue. please confirm how to fix this

Rajesh9166 avatar Nov 30 '21 16:11 Rajesh9166

me to having the same problem even i installed git

vedantpatel07756 avatar Apr 27 '22 17:04 vedantpatel07756