Open johntimothybailey opened 2 years ago
Hello there and thank you for the ticket created! Sorry for the late reply but for some reason i didn't got notification on my email regarding this ticket.
This error means that firebase
CLI command is not recognized by npx
which is quite strange since we have this code here:
https://github.com/rxdi/firelink/blob/master/src/helpers/worker.ts#L7
Which prefixes every command passed by Worker to be executed using npx
.
I haven't try this library with node
16 and the new npm
version 8
Will take a look today and will write down.
At the moment can u provide more details about what OS are you running ? ( mac, win, linux ) ?
Also if you execute npx firebase
in the terminal is it working as expected ?
@Stradivario I came across the same issue.
Also if you execute
npx firebase
in the terminal is it working as expected ?
To make it works, it needs to invoke as npx -p firebase-tools firebase
@Stradivario I came across the same issue.
Also if you execute
npx firebase
in the terminal is it working as expected ?To make it works, it needs to invoke as
npx -p firebase-tools firebase
By default firebase
command is used when executing command firelink
You can change that behavior by specify runner
property fireConfig: { runner: 'dir' }
https://github.com/rxdi/firelink#configuration
There is a way from the recent versions to remove that behavior with argument --no-runner
explained here https://github.com/rxdi/firelink#no-runner
The package actually doesn't depend on firebase-tools
so it will be framework agnostic and it can be used also with serverless
, gcloud
or other platform which deploys the same way.
I wasn't able to reproduce these errors on my side with linux
and nodejs 16
Need to think of it that maybe to not have default runner will be a better option for everybody.
That way everyone will know and install all of the tools needed to spin up the command he wishes.
The actual purpose of firelink is to map your local packages and install them from there and then revert back to specific version and not local path. So actually it is written to be framework agnostic.
Cheers!
Error
When running
$ firelink
(doesn't matter what arguments I give) I receiveContext
Using
@rxdi/firelink@^0.7.75
withfirebase@9.23.1
(firebase-tools) within a monorepo (lerna + yarn)Due to client privacy I've called the project
@example
but that is the only thing replaced from my package.jsonThoughts
I am investigating a fix in
rsync
https://github.com/rxdi/firelink/blob/46e59462971010a9e6bf02d8ea33a4705a35fc8d/src/helpers/copy-packages.ts#L15