OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

`git` command not found when starting frontend

Open Mecil9 opened this issue 1 year ago • 3 comments

Describe the bug when i run "npm i",throw this error:

[email protected] prepare cd .. && husky install frontend/.husky

fatal: not a git repository (or any of the parent directories): .git husky - git command not found, skipping install

apple: m1 max node:20.8.0

Mecil9 avatar Mar 28 '24 16:03 Mecil9

Enter "git init" in the first terminal before going to the second terminal and performing the steps.

1of13 avatar Mar 28 '24 16:03 1of13

Sounds like you don't have git installed? It should come pre-loaded on os x...

What does git --version show?

rbren avatar Mar 28 '24 17:03 rbren

Check whether git is installed or not 'git --version'

Install husky using cmd : npm i husky --save-dev or npm i husky@latest -- save dev

somashekar17 avatar Mar 29 '24 04:03 somashekar17

This seems like git just isn't installed on your machine (though I'm still confused how you cloned it).

Going to close this one for now since it doesn't seem like an OpenDevin issue, but if you have any more info I'm happy to help you debug.

rbren avatar Mar 30 '24 15:03 rbren

This seems like git just isn't installed on your machine (though I'm still confused how you cloned it).

Could use the "download zip" button from the same dialog box with git URLs, I suppose.

enyst avatar Mar 31 '24 01:03 enyst