angular / angular/angularfire

spawn gcloud ENOENT

未關閉
#3,098 7 則留言 2 個 reaction 已指派 1 人 已被 @davideast 認領 在 GitHub 檢視
comp: schematics type: bug version: legacy (v7-v16)
主要語言
TypeScript
星號
7.8k
分支
2.2k
平均合併
22 小時 28 分鐘
30 天內合併 PR
6

描述

### 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 `\\`

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。