Failed at the ratel-client@0.0.1 start script

Moved from GitHub ratel/92

Posted by chandra155:

After installing npm dependencies, when trying to start project by npm start getting error.

Error: Command failed: git rev-parse --short HEAD
fatal: not a git repository (or any of the parent directories): .git

at checkExecSyncError (child_process.js:616:11)
at Object.execSync (child_process.js:653:13)
at getClientEnvironment (C:\Users\Z0042HDB\Downloads\ratel-master\ratel-master\client\config\env.js:83:41)
at Object.<anonymous> (C:\Users\Z0042HDB\Downloads\ratel-master\ratel-master\client\config\
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)

npm ERR! errno 1
npm ERR! ratel-client@0.0.1 start: node scripts/start.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ratel-client@0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Please help

campoy commented :

Hey @paulftw, could you have a look at this bug and make sure you add some documentation on how to correctly run ratel from source code?


paulftw commented :

@chandra155 what is the output of git rev-parse --short HEAD when you run it in the ratel/client folder?
Seems like your source folder is not in a git repository. Did you download a zip archive or something?

chandra155 commented :

@paulftw hi Paul , i downloaded the zip archive.

paulftw commented :

Fixed in Do not abort build if git is not available · dgraph-io/ratel@6c9b5bf · GitHub

paulftw commented :

Feel free to re-open this bug if the issue persists with the patch above