question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

spawn gcloud ENOENT

See original GitHub issue

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 Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

2reactions
fr-escocommented, 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…

1reaction
google-oss-botcommented, Dec 21, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I debug "Error: spawn ENOENT" on node.js?
30 Answers 30 · Step 1: Ensure spawn is called the right way · Step 2: Identify the Event Emitter that emits the...
Read more >
spawn node ENOENT" when using child_process in Node.js
Have you ever stumbled upon this error when using spawn from Node.js' child_process module? ~/demo $ node main.js. ~/demo/main.js: ...
Read more >
Fatal error: spawn ENOENT while running grunt
I think ENOENT is when there is a missing file or directory. Did you follow all of the setup steps in the docs...
Read more >
Error spawn ENOENT on node js | Edureka Community
Before anyone spends to much time debugging this problem, most of the time it can be resolved by deleting node_modules and reinstalling the ......
Read more >
Solved: Re: Can't run openssl through Node (using execFile...
Error: spawn openssl ENOENT ... correct - I don't have my own docker container and instead am allowing the gcloud CLI to build...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found