Will I am
Will I am

Reputation: 51

Firestore-algolia-search command not found

So I had a question I'm working on a Algolia extension for Firebase but when I try Step 3(see image 2 below) to excute the commands I get a "bash: firestore-algolia-search: command not found" error even though I installed the npx does anyone know why?

Upvotes: 5

Views: 344

Answers (2)

Dante Teder
Dante Teder

Reputation: 21

This issue can be solved by changing the bash command script - make this whole script into one line and remove the "\" symbols.

So change this

  LOCATION=YOUR-DATA\
  PROJECT_ID=YOUR-DATA\
  ALGOLIA_APP_ID=YOUR-DATA\
  ALGOLIA_API_KEY=YOUR-DATA\
  ALGOLIA_INDEX_NAME=YOUR-DATA\
  COLLECTION_PATH=YOUR-DATA\
  FIELDS=YOUR-DATA\
  TRANSFORM_FUNCTION=YOUR-DATA\
  GOOGLE_APPLICATION_CREDENTIALS=YOUR-DATA\
  npx firestore-algolia-search

to this

LOCATION=YOUR-DATA PROJECT_ID=YOUR-DATA ALGOLIA_APP_ID=YOUR-DATA ALGOLIA_API_KEY=YOUR-DATA ALGOLIA_INDEX_NAME=YOUR-DATA COLLECTION_PATH=YOUR-DATA FIELDS=YOUR-DATA TRANSFORM_FUNCTION=YOUR-DATA GOOGLE_APPLICATION_CREDENTIALS=YOUR-DATA npx firestore-algolia-search 

Upvotes: 2

Rob Swift
Rob Swift

Reputation: 1

I had this issue, you can stop this issue by making sure you path does not have <> around it. That said the function still doesn't seem to have worked for me, but this at least got around the "command not found" error.

Upvotes: 0

Related Questions