angular / angular/angularfire

spawn gcloud ENOENT

Aberta
#3,098 7 comentários 2 reações 1 responsável Reivindicada por @davideast Ver no GitHub
comp: schematics type: bug version: legacy (v7-v16)
Linguagem predominante
TypeScript
Estrelas
7.8k
Forks
2.2k
Merge médio
22h 28min
PRs com merge (30d)
6

Descrição

### Version info

**Angular:** 12.2.15

**Firebase:** 9.4.0

**AngularFire:** 7.2.0

**nguniversal/express-engine:** 12.1.3

### Problem

On installing `Angular fire` with `ng add @angular/fire` and choosing `Cloud Run` for my SSR. It gives me an error when running `ng deploy` .

> ✔ Prerendering routes to C:\Users\x\Desktop\my-project\dist\my-project\browser complete.
> 📦 Deploying to Cloud Run
> **Error when trying to deploy:**
> **spawn gcloud ENOENT**

Where I think the problem lies is at `dist/my-project/run/package.json`
```
{
"name": "functions",
"description": "Angular Universal Application",
"main": "dist\\my-project\\server\\main.js",
"scripts": {
"start": "node dist\\my-project\\server\\main.js"
},
"engines": {
"node": "16.13"
},
"dependencies": {},
"devDependencies": {},
"private": true
}
```
Where it should be a single slash `\` instead of a double slashes `\\`

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.