dimitrov-adrian / directus-extension-searchsync

Simple Directus 9 extension that sync content with remote search engine.
MIT License
115 stars 27 forks source link

Can't find binary in git #19

Open keesvanbemmel opened 2 years ago

keesvanbemmel commented 2 years ago

Hi!

Trying to add this to my project but getting this output:

yarn add dimitrov-adrian/directus-extension-searchsync      
yarn add v1.22.18
[1/4] Resolving packages...
error Couldn't find the binary git

Any thoughts?

dimitrov-adrian commented 2 years ago

I tried with yarn add https://github.com/dimitrov-adrian/directus-extension-searchsync and it seems to works

Using node@16 and directus@9.14

LeBenLeBen commented 1 year ago

This package is not published on the npm registry, it gets installed by npm through Git. Try to install Git first.

ivank commented 1 week ago

If you're building a Docker image and having directus/directus as base - it uses node-alpine. That one doesn't have git by default

This ended up working:

FROM directus/directus:11.1.0

USER root
RUN apk add --no-cache git
RUN corepack enable
USER node

RUN pnpm install dimitrov-adrian/directus-extension-searchsync