Bugsnag-js: npm ERR! No git binary found in $PATH

Created on 15 May 2018  Â·  6Comments  Â·  Source: bugsnag/bugsnag-js

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://[email protected]/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 ?

Most helpful comment

works like a charm, ty @bengourley

All 6 comments

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
.

works like a charm, ty @bengourley

so how to solve this??

so how to solve this??

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

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vikrantnegi picture vikrantnegi  Â·  5Comments

Andarius picture Andarius  Â·  3Comments

kilianc picture kilianc  Â·  5Comments

chobo2 picture chobo2  Â·  6Comments

H2go picture H2go  Â·  5Comments