This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 334
run-wrangler.js exits 0 if wrangler binary not found #848
Comments
i can take a crack at fixing this if it seems worthwhile--it might be that our usage was a bit too nonstandard (we were trying to install in our project as a dev dependency, instead of installing globally as recommended in the docs, which is why it couldn't install at |
@jaredmcdonald we would absolutely love it if you'd take a crack at fixing this, thanks for the report! π |
This error still occur as at 6 Sep 2021 just trying to install wrangler into the official node container. How to recreate: Dockerfile
Command: Error:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
π Bug Report
Environment
node -v
:v8.11.3
wrangler -V
:π· β¨ wrangler 1.5.0
Steps to reproduce
npm i -g @cloudflare/wrangler
)wrangler --help
this appears to be due to
spawnSync
returning astatus
ofnull
in this case:What did you expect to see?
an error message or at least a nonzero exit code. seems that null-checking the
error
property on the return value ofspawnSync
would be enough (and maybe also sendingerror
to stderr)What did you see instead?
exit code
0
and no outputThe text was updated successfully, but these errors were encountered: