Open FrivalszkyP opened 5 months ago
... Any progress on this ?
I had the same issue on my Macbook Air M1 running firebase init
for an Angular 18 project built with yarn
.
I managed to solve it by examining any global packages that might be interfering. Sometimes, global installations can cause conflicts or issues, especially with CLI tools like Firebase.
npm list -g --depth=0
And I went through each of my project-related packages checking and updating to the latest version on npm, like:
npm install -g firebase-tools@latest
npm install -g tsx@latest
npm install -g npm@latest
...
Finally I cleaned up my project by removing node_modules and yarn.lock file to ensure that it takes the latest updates.
Working so far to set up my firebase init hosting
💯
[REQUIRED] Environment info
firebase --version
: 13.7.3Platform:
macOS: M1 Sonoma Latest npm, pnpm, bun, all of these produce the same issue. Optional dependencies are allowed by default.
[REQUIRED] Test case
Hey folks, I'm running into an issue with my svelte application, although the issue could be related to vite rather than svelte itself. While the application builds successfully, the firebase init command produces an error that seems to have something to do with a rollup dependency missing. The rollup dependency is for
darwin
architecture but that's not what my platform is using.See @Startouf's comment here, it describes the same issue.
[REQUIRED] Steps to reproduce
npx (or bun) create svelte@latest myapp
follow instructions, choose either svelte 4 or 5.firebase init hosting
follow instructions[REQUIRED] Expected behavior
Firebase command succeeds.
[REQUIRED] Actual behavior