firebase / firebase/firebase-tools

pnpm workspace firebase support

Open
#7,334 0 comments 13 reactions 1 assignee Assigned to @Berlioz View on GitHub
type: feature request
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

When running `firebase deploy --only hosting` in a turborepo project it seems that firebase run the next npm command as part of series of scripts:

`npm i --omit dev --no-audit`

This command in a turborepo pnpm workspace failed with the next error:

```bash
│ npm ERR! code EUNSUPPORTEDPROTOCOL
│ npm ERR! Unsupported URL Type "workspace:": workspace:*

│ npm ERR! A complete log of this run can be found in: C:\Users\Usuario\npm-cache\_logs\2024-06-16T09_49_17_153Z-debug-0.lo
│ g
│ [2024-06-16T09:49:17.454Z] Error: Command failed: npm i --omit dev --no-audit
│ at checkExecSyncError (node:child_process:890:11)
│ at execSync (node:child_process:962:15)
│ at prepareFrameworks (C:\Users\Usuario\AppData\Roaming\nvm\v20.10.0\node_modules\firebase-tools\lib\frameworks\index.
│ js:371:42)
│ at async deploy (C:\Users\Usuario\AppData\Roaming\nvm\v20.10.0\node_modules\firebase-tools\lib\deploy\index.js:55:13)

│ Error: An unexpected error has occurred.
│  ELIFECYCLE  Command failed with exit code 2.
```

Could Firebase support pnpm natively without having to do any workaround?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.