Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spawn gcloud ENOENT #3098

Open
ibrahimxcool opened this issue Dec 21, 2021 · 5 comments
Open

spawn gcloud ENOENT #3098

ibrahimxcool opened this issue Dec 21, 2021 · 5 comments
Assignees

Comments

@ibrahimxcool
Copy link

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

@google-oss-bot
Copy link

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@vladimir-barsuchenko
Copy link

@ibrahimxcool How did you end up resolving this issue?

@fr-esco
Copy link

fr-esco commented Mar 10, 2022

Same problem here on Windows.

I put gcloud in the Path variable and logged in. Then made sure that gcloud works if called from PowerShell, Command line and Git bash. Bt it still seems unavailable to this schematic run process...

@DavidWeiss2
Copy link

Same here

fr-esco added a commit to fr-esco/angularfire that referenced this issue Oct 7, 2022
fr-esco added a commit to fr-esco/angularfire that referenced this issue Oct 7, 2022
@fr-esco fr-esco mentioned this issue Oct 7, 2022
@fr-esco
Copy link

fr-esco commented Oct 7, 2022

Just created a PR with a fix for Windows users.

@davideast davideast self-assigned this Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants