reflex
reflex copied to clipboard
reflex init command not working
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ Initializing portfolio βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Installing node failed with exit code 1
& : The term 'C:\Users\shaba\AppData\Local\reflex\fnm\fnm.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:3
+ & "C:\Users\shaba\AppData\Local\reflex\fnm\fnm.exe" install 18.17.0 - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\shaba\...lex\fnm\fnm.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Run with --loglevel debug for the full log.
every time i run reflex init i got the above statement
D:\Programs\Python\reflex\portfolio>reflex init --loglevel debug
Info: Overriding config value username with env var USERNAME=shaba
Info: Overriding config value username with env var USERNAME=shaba
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ System Info βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Debug: Config file:
'C:\\Users\\shaba\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python311\\site-packages\\reflex\
\config.py'
Debug: Config: app_name='' loglevel=<LogLevel.INFO: 'info'> frontend_port=3000 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\\shaba\\AppData\\Local\\reflex\\.bun\\bin\\bun' cors_allowed_origins=['*'] tailwind=None timeout=120 next_compression=True
event_namespace=None frontend_packages=[] rxdeploy_url=None username='shaba'
Debug: Running command: ['C:\\Users\\shaba\\AppData\\Local\\reflex\\fnm\\node-versions\\v18.17.0\\installation\\node.exe', '-v']
Debug: [Reflex 0.2.6 with Python 3.11.4 (PATH:
C:\Users\shaba\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\python.exe)]
Debug: [Node None (Expected: 18.17.0) (PATH:C:\Users\shaba\AppData\Local\reflex\fnm\node-versions\v18.17.0\installation\node.exe)]
Debug: [FNM 1.35.1 (Expected: 1.35.1) (PATH: C:\Users\shaba\AppData\Local\reflex\fnm\fnm.exe)]
Debug: [OS Windows 10.0.18363]
Debug: Using package installer at: C:\Users\shaba\AppData\Local\reflex\fnm\node-versions\v18.17.0\installation\npm
Debug: Using package executer at: C:\Users\shaba\AppData\Local\reflex\fnm\node-versions\v18.17.0\installation\npm
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ Initializing portfolio βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Debug: Skipping bun installation on Windows.
Debug: Running command: ['powershell', '-Command', '& "C:\\Users\\shaba\\AppData\\Local\\reflex\\fnm\\fnm.exe" install 18.17.0 --fnm-dir
"C:\\Users\\shaba\\AppData\\Local\\reflex\\fnm"']
Debug: Installing node
Debug: & : The term 'C:\Users\shaba\AppData\Local\reflex\fnm\fnm.exe' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check
Debug: the spelling of the name, or if a path was included, verify that the path is correct and try again.
Debug: At line:1 char:3
Debug: + & "C:\Users\shaba\AppData\Local\reflex\fnm\fnm.exe" install 18.17.0 - ...
Debug: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Debug: + CategoryInfo : ObjectNotFound: (C:\Users\shaba\...lex\fnm\fnm.exe:String) [], CommandNotFoundException
Debug: + FullyQualifiedErrorId : CommandNotFoundException
Debug:
Installing node failed with exit code 1
& : The term 'C:\Users\shaba\AppData\Local\reflex\fnm\fnm.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:3
+ & "C:\Users\shaba\AppData\Local\reflex\fnm\fnm.exe" install 18.17.0 - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\shaba\...lex\fnm\fnm.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Run with --loglevel debug for the full log.
D:\Programs\Python\reflex\portfolio>
this is what come when i use reflex init --loglevel debug
I see, can you provide more info on what powershell version you have(open powershell and type the command $PSVersionTable.PSVersion)?
IΒ΄ve got the same problem witth reflex init
Info: Overriding config value username with env var USERNAME=Admin
ββββββββββββββββββββββββββββββββββββββββββββββββββββ Initializing hello_reflex βββββββββββββββββββββββββββββββββββββββββββββββββββββInstalling node failed with exit code 1
& : El tΓ©rmino 'C:\Users\Admin\AppData\Local\reflex\fnm\fnm.exe' no se reconoce como nombre de un cmdlet, funciΓ³n, archivo de script o
programa ejecutable. Compruebe si escribiΓ³ correctamente el nombre o, si incluyΓ³ una ruta de acceso, compruebe que dicha ruta es
correcta e intΓ©ntelo de nuevo.
En lΓnea: 1 CarΓ‘cter: 3
+ & "C:\Users\Admin\AppData\Local\reflex\fnm\fnm.exe" install 1
```8.17.0 -
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\Admin\...lex\fnm\fnm.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Run with --loglevel debug for the full log.
> In my case
Major Minor Build Revision
5 / 1 / 19041 / 1620
Had the same issue, solved it as follows:
- Create the folder %localappdata%/reflex/fnm
- Download the fnm-windows.zip
- Unzip fnm-windows.zip and copy the fnm.exe to %localappdata%/reflex/fnm