angular / angular/angularfire

spawn gcloud ENOENT

オープン
#3,098 コメント 7 件 リアクション 2 件 担当者 1 名 @davideast が担当を希望しています GitHub で見る
comp: schematics type: bug version: legacy (v7-v16)
主要言語
TypeScript
スター
7.8k
フォーク
2.2k
平均マージ
22時間 28分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。