Closed kuechlerm closed 2 years ago
Hey @kuechlerm , thanks for reporting this. Looking at the error logs, it seems like this is failing when we try to spawn a new process to npm install
the extensions source code https://github.com/firebase/firebase-tools/blob/v10.9.2/src/emulator/extensionsEmulator.ts#L175
I'm not able to repro this on my Mac, so I suspect that this error is Windows only - possibly something similar to https://stackoverflow.com/questions/37125619/spawnsyncnpm-install-gives-error-spawnsync-npm-enoent
Looks like we probably need to use cross-spawn here instead to ensure that this works correctly on all platforms. Working on a fix to use that now.
Hi @joehan thanks for the quick response. It would be great if you can fix it - I hope for the best ;) Thanks!
I'v the same issue and its work to me. Thanks!
I install global package cross-spawn
and import from C:\Users\<...>\AppData\Roaming\nvm\v14.18.1\node_modules\firebase-tools\lib\emulator\extensionsEmulator.js
and rename child_process_1
.
Thanks!!
[REQUIRED] Environment info
firebase-tools: 10.9.2
Platform: Windows 10
[REQUIRED] Test case
Normal Firebase project
[REQUIRED] Steps to reproduce
I ran
firebase ext:install firebase/storage-resize-images --local
thenfirebase emulators:start
[REQUIRED] Expected behavior
Start emulators with the added extension
[REQUIRED] Actual behavior
Emulators do not start