Topic: Couldn't find the binary git

uhligjens pro asked 5 years ago


Hi,

first of all: Great Work!

Second: I try to add the latest react version to my project as a dependency. I followed the instructions and added an applcicatoin key and also an ssh public key to gitlab. But still get an error "error Couldn't find the binary git". See the log below. Any Suggestions?

yarn add git+https://oauth2:xxxxxxxxxxx@git.mdbootstrap.com/mdb/react/re-pro.git
yarn add v1.9.4
[1/4] Resolving packages...
error Couldn't find the binary git
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Best,

Jens

 


Mikołaj Smoleński staff answered 5 years ago


Hi, Have You tried this method: Alternatively, you can update your dependencies in package.json like below: "dependencies": { "mdbreact": "git+https://oauth2:xxxxxxxxxxx@git.mdbootstrap.com/mdb/react/re-pro.git" } Then run yarn or npm install to install the dependencies Best Regards  

uhligjens pro commented 5 years ago

Thx for the reply. But the issue was caused by the powershell terminal in vs code. The powershell did not find the git command exe. As soon as I tryed it on a command line it worked perfect.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags