reactjs - Error on npm run deploy with gh-pages and Create-React-App -


update

i tried deploying using cmder instead of powershell , worked! when initally set using cmder i'm not sure if reason or not... have no idea why breaks under powershell.


everything working fine , able build react-app , deploy github , of sudden started getting errors last week whenever try run npm run deploy

here snippet of error :

powershell

> gh-pages -d build  events.js:160       throw er; // unhandled 'error' event       ^  error: spawn git enoent     @ exports._errnoexception (util.js:1020:11)     @ process.childprocess._handle.onexit (internal/child_process.js:193:32)     @ onerrornt (internal/child_process.js:367:16)     @ _combinedtickcallback (internal/process/next_tick.js:80:11)     @ process._tickcallback (internal/process/next_tick.js:104:9)     @ module.runmain (module.js:606:11)     @ run (bootstrap_node.js:389:7)     @ startup (bootstrap_node.js:149:9)     @ bootstrap_node.js:504:3 npm err! code elifecycle npm err! errno 1 npm err! app@0.1.0 deploy: `gh-pages -d build` npm err! exit status 1 npm err! npm err! failed @ app@0.1.0 deploy script. npm err! not problem npm. there additional logging output above.  npm err! complete log of run can found in: npm err!     c:\users\spiderman\appdata\roaming\npm-cache\_logs\2017-08-15t00_44_09_227z-debug.log 

one thing note node installed on d: drive , react files. looks npm installed partially on c: drive.

anyways here full log i've narrowed down here:

debug log

1 info lifecycle app@0.1.0~deploy: app@0.1.0 12 verbose lifecycle app@0.1.0~deploy: unsafe-perm in lifecycle true 13 verbose lifecycle app@0.1.0~deploy: path: c:\users\spiderman\appdata\roaming\npm\node_modules\npm\bin\node-gyp-bin;d:\users\spiderman\websites\pb\app\node_modules\.bin;c:\program files (x86)\nvidia corporation\physx\common;c:\programdata\oracle\java\javapath;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\program files\microsoft\web platform installer\;c:\program files\microsoft sql server\110\tools\binn\;c:\program files (x86)\microsoft sdks\typescript\1.0\;c:\program files\microsoft sql server\120\tools\binn\;d:\program files (x86)\quicktime\qtsystem\;c:\program files (x86)\windows live\shared;d:\program files (x86)\brackets\command;d:\program files\git lfs;d:\program files\openvpn\bin;d:\program files\nodejs\;d:\python34;d:\program files\heroku\bin;c:\users\spiderman\appdata\local\atom\bin;c:\users\spiderman\appdata\roaming\npm 14 verbose lifecycle app@0.1.0~deploy: cwd: d:\users\spiderman\websites\pb\app 15 silly lifecycle app@0.1.0~deploy: args: [ '/d /s /c', 'gh-pages -d build' ] 16 silly lifecycle app@0.1.0~deploy: returned: code: 1  signal: null 17 info lifecycle app@0.1.0~deploy: failed exec deploy script 18 verbose stack error: app@0.1.0 deploy: `gh-pages -d build` 18 verbose stack exit status 1 18 verbose stack     @ eventemitter.<anonymous> (c:\users\spiderman\appdata\roaming\npm\node_modules\npm\lib\utils\lifecycle.js:289:16) 18 verbose stack     @ emittwo (events.js:106:13) 18 verbose stack     @ eventemitter.emit (events.js:191:7) 18 verbose stack     @ childprocess.<anonymous> (c:\users\spiderman\appdata\roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14) 18 verbose stack     @ emittwo (events.js:106:13) 18 verbose stack     @ childprocess.emit (events.js:191:7) 18 verbose stack     @ maybeclose (internal/child_process.js:891:16) 18 verbose stack     @ process.childprocess._handle.onexit (internal/child_process.js:226:5) 19 verbose pkgid app@0.1.0 20 verbose cwd d:\users\spiderman\websites\pb\app 21 verbose windows_nt 6.3.9600 22 verbose argv "d:\\program files\\nodejs\\node.exe" "c:\\users\\spiderman\\appdata\\roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "deploy" 23 verbose node v6.11.2 24 verbose npm  v5.1.0 25 error code elifecycle 26 error errno 1 27 error app@0.1.0 deploy: `gh-pages -d build` 27 error exit status 1 28 error failed @ app@0.1.0 deploy script 

https://pastebin.com/gyr9pktj ps on windows running power shell.

package.json

{   "name": "app",   "version": "0.1.0",   "private": true,   "homepage": "https://hidden.github.io/hideen/",   "dependencies": {     "firebase": "^4.1.3",     "gh-pages": "^1.0.0",     "re-base": "^3.0.2",     "react": "^15.6.1",     "react-dom": "^15.6.1",     "react-router": "^4.1.1",     "react-router-dom": "^4.1.1",     "react-scripts": "1.0.10",     "react-transition-group": "^1.2.0"   },   "scripts": {     "start": "react-scripts start",     "build": "react-scripts build",     "test": "react-scripts test --env=jsdom",     "eject": "react-scripts eject",     "predeploy": "npm run build",     "deploy": "gh-pages -d build"   } } 


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -