bugsnag / bugsnag-js

JavaScript error handling tool for BugSnag. Monitor and report JavaScript bugs & errors.
https://docs.bugsnag.com/platforms/javascript
MIT License
856 stars 252 forks source link

npm ERR! No git binary found in $PATH #349

Closed flrnt closed 6 years ago

flrnt commented 6 years ago

Expected behavior

run fine :)

Observed behavior

got this in stacktrace

npm ERR! code ENOGIT
npm ERR! Error while executing:
npm ERR! undefined ls-remote -h -t ssh://git@github.com/bengourley/stack-generator.git
npm ERR! 
npm ERR! undefined
npm ERR! No git binary found in $PATH

Steps to reproduce

npm install on my production server

Version

4.6.0

I think it's relative to ssh path of the remote url, maybe need to switch to https ?

bengourley commented 6 years ago

It looks like you're trying to install Bugsnag on a machine that doesn't have git installed? Some of bugsnag-js's dependencies are pulled in via git so you'll need to install git first.

On Tue, 15 May 2018, 21:10 Graham Campbell, notifications@github.com wrote:

Did you mean to post here? :)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bugsnag/bugsnag-js/issues/349#issuecomment-389297384, or mute the thread https://github.com/notifications/unsubscribe-auth/AAlNKyIl5hDlHlsNTvro1jvhRTkvBXS2ks5tyzZJgaJpZM4T_ahv .

flrnt commented 6 years ago

works like a charm, ty @bengourley

lylest commented 5 years ago

so how to solve this??

jxnielle commented 5 years ago

so how to solve this??

Download git: https://git-scm.com/downloads

vfmh commented 5 years ago

I have installed Git and configured environment variables,but not solve it

snmaynard commented 5 years ago

You need to install git and have it available in your path then it should work.