angular / angular/angularfire

spawn gcloud ENOENT

Đang mở
#3,098 7 bình luận 2 reaction 1 người được giao Được @davideast nhận Xem trên GitHub
comp: schematics type: bug version: legacy (v7-v16)
Ngôn ngữ chính
TypeScript
Star
7.8k
Fork
2.2k
Merge trung bình
22 giờ 28 phút
Pull request đã merge (30 ngày)
6

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.