reflex-dev / reflex

🕸️ Web apps in pure Python 🐍
https://reflex.dev
Apache License 2.0
20.44k stars 1.18k forks source link

Installing base frontend packages failed with exit code 1 #2115

Open KalvinMa opened 1 year ago

KalvinMa commented 1 year ago

When I try to run the app with "reflex run", I got an error about installing base frontend packages as below. Would you please do me a favor? Thanks.

PS D:\chatapp> reflex run --loglevel debug Info: Overriding config value username with env var USERNAME=TEST ───────────────────────────────────────────────────── System Info ───────────────────────────────────────────────────── Debug: Config file: 'C:\Users\TEST\AppData\Local\Programs\Python\Python312\Lib\site-packages\reflex\config.py' Debug: Config: app_name='chatapp' loglevel=<LogLevel.INFO: 'info'> frontend_port=3000 frontend_path='' backend_port=8000 api_url='http://localhost:8000' deploy_url='http://localhost:3000' backend_host='0.0.0.0' db_url='sqlite:///reflex.db' redis_url=None telemetry_enabled=True bun_path='C:\Users\TEST\AppData\Local\reflex\bun\bin\bun' cors_allowed_origins=['*'] tailwind={} timeout=120 next_compression=True event_namespace=None frontend_packages=[] rxdeploy_url=None cp_backend_url='https://rxcp-prod-control-plane.fly.dev' cp_web_url='https://control-plane.reflex.run' username='TEST' Debug: Running command: ['C:\Users\TEST\AppData\Local\reflex\fnm\node-versions\v18.17.0\installation\node.exe', '-v'] Debug: Running command: ['C:\Users\TEST\AppData\Local\reflex\fnm\fnm.exe', '--version'] Debug: [Reflex 0.3.1 with Python 3.12.0 (PATH: C:\Users\TEST\AppData\Local\Programs\Python\Python312\python.exe)] Debug: [Node 18.17.0 (Expected: 18.17.0) (PATH:C:\Users\TEST\AppData\Local\reflex\fnm\node-versions\v18.17.0\installation\node.exe)] Debug: [FNM 1.35.1 (Expected: 1.35.1) (PATH: C:\Users\TEST\AppData\Local\reflex\fnm\fnm.exe)] Debug: [OS Windows 10.0.22621] Debug: Using package installer at: C:\Users\TEST\AppData\Local\reflex\fnm\node-versions\v18.17.0\installation\npm Debug: Using package executer at: C:\Users\TEST\AppData\Local\reflex\fnm\node-versions\v18.17.0\installation\npm Warning: Windows Subsystem for Linux (WSL) is recommended for improving initial install times. Info: Overriding config value username with env var USERNAME=TEST ───────────────────────────────────────────────── Starting Reflex App ───────────────────────────────────────────────── Compiling: ---------------------------------------- 100% 4/4 0:00:00 Debug: Running command: ['C:\Users\TEST\AppData\Local\reflex\fnm\node-versions\v18.17.0\installation\npm', 'install', '--loglevel', 'silly'] Debug: Installing base frontend packages Installing base frontend packages failed with exit code 1 Run with --loglevel debug for the full log.

Python: v3.12.0

KalvinMa commented 1 year ago

Solved on wsl. Caused by fnm installation on my Windows 11. Thanks a lot.