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

Prerequisites should mention that for Linux, npm must be installed #1193

Open
stock90975 opened this issue Jan 28, 2025 · 3 comments
Open

Prerequisites should mention that for Linux, npm must be installed #1193

stock90975 opened this issue Jan 28, 2025 · 3 comments

Comments

@stock90975
Copy link
Contributor

stock90975 commented Jan 28, 2025

https://reflex.dev/docs/getting-started/installation/

Prerequisites should mention that for Linux, npm must be installed.

Otherwise, on
reflex run

there will be errors:

FileNotFoundError: NPM not found. You may need to run `reflex init`.

which does not really help.

Copy link

linear bot commented Jan 28, 2025

@stock90975 stock90975 changed the title Issue with reflex.dev documentation Prerequisites should mention that for Linux, npm must be installed Jan 28, 2025
@Alek99
Copy link
Member

Alek99 commented Jan 28, 2025

What is confusing about that error message, typing reflex init will solve it by installing npm

@stock90975
Copy link
Contributor Author

As mentioned, npm seems to be a system prerequisite. If npm is not present, the error will occur.

reflex init will not solve anything because npm is a system level component that must be installed, eg using apt.

reflex init only makes changes in the venv.

It does not install npm, AFAIK, and does not install npm on, eg. Linux Mint. Hence, the error message is confusing at best, ineffectual at worst.

Anyway, the main issue is the docs, which should say npm is a prerequisite, not the error message per se.

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

2 participants