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

[REF-2086] Avoid "Warning: The path to the Node binary could not be found. #2803

Merged
merged 3 commits into from
Mar 13, 2024

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Mar 7, 2024

When bootstrapping node itself, we do not need to warn the user that node cannot be found -- it's obviously not found because we're installing it right now. This warning leads some folks to believe that they need to install node themselves (for example in a docker container), when in reality, reflex will always try to install it's own known-good version of node first.

Also avoid a nasty traceback when Reflex attempts to run node or npm, but it's not actually installed (instead, the warning will be displayed and it will say "Invalid Command").

Move the recently added check (#2767) for node before installing node above the conditional so it can also skip node installation on Windows, which is especially slow.

Yes, I tested this on Windows.

…ound."

When bootstrapping node itself, we do not need to warn the user that node
cannot be found -- it's obviously not found because we're installing it right
now. This warning leads some folks to believe that they need to install node
themselves (for example in a docker container), when in reality, reflex will
always try to install it's own known-good version of node first.

Also avoid a nasty traceback when Reflex attempts to run node or npm, but it's
not actually installed (instead, the warning will be displayed and it will say
"Invalid Command").

Move the recently added check for node before installing node above the
conditional so it can also skip node installation on Windows, which is
especially slow.
masenf added 2 commits March 6, 2024 19:43
Next 14 has always required 18.17, so Reflex should have bumped this up a long
time ago.
@picklelo picklelo merged commit f52ff56 into main Mar 13, 2024
45 checks passed
@masenf masenf deleted the masenf/nix-node-warning branch April 24, 2024 18:46
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

Successfully merging this pull request may close these issues.

2 participants