NEW: You can now configure the controller to automatically start when you log into Windows!
Just double-click: tools/ENABLE_AUTO_START.bat
See AUTO_START_GUIDE.md for complete instructions.
If you see an error like:
Error: EPERM: operation not permitted, mkdir 'C:\Windows\System32\node_modules\.vite\deps_temp_...'
This means you're running the command from the wrong directory!
-
Open Command Prompt or PowerShell
-
Navigate to the project directory:
cd path\to\local-nexus-controller -
Run the startup script:
start.bat
OR use npm:
npm run dev
Double-click start.bat in the project folder, or run:
start.batBenefits:
- Automatically changes to correct directory
- Checks Python installation
- Shows clear error messages
- Handles dependency installation
- Open Command Prompt or PowerShell
- Navigate to project:
cd C:\path\to\local-nexus-controller - Run:
npm run dev
cd C:\path\to\local-nexus-controller
python -m local_nexus_controllerProblem: Command Prompt opens in C:\Windows\System32 by default
Symptoms:
- Vite errors about System32 directories
- "EPERM: operation not permitted"
- Can't find project files
Solution:
- Always
cdto your project directory first - Or use the
start.batscript which does this automatically
Problem: python command not recognized
Solutions:
A. Check if Python is installed:
python --versionIf not found, install from: https://www.python.org/downloads/
B. Use py launcher instead:
py --version
py -m local_nexus_controllerC. Add Python to PATH:
- Reinstall Python
- Check "Add Python to PATH" during installation
Problem: pip command not working
Solutions:
Try these in order:
pip install -r requirements.txt
python -m pip install -r requirements.txt
py -m pip install -r requirements.txt
pip3 install -r requirements.txtThe application will try all of these automatically!
Problem: "Access is denied" when installing packages
Solutions:
A. Use --user flag:
pip install --user -r requirements.txtB. Run as Administrator:
- Right-click Command Prompt
- Select "Run as administrator"
- Navigate to project and run commands
C. Use a virtual environment:
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
python -m local_nexus_controller-
Install Python 3.10 or higher
- Download from https://www.python.org/downloads/
- CHECK "Add Python to PATH" during installation
-
Open PowerShell or Command Prompt
-
Navigate to project:
cd C:\path\to\local-nexus-controller -
Install dependencies (optional, auto-installs on first run):
pip install -r requirements.txt
Just double-click start.bat or run:
npm run devWhy does Vite show up in the errors?
The Vite error in your screenshot is a red herring. It's happening because:
- Your terminal was in the
C:\Windows\System32directory - Some process (possibly the Bolt.new IDE) was trying to start
- It tried to write temp files to System32 (not allowed)
Local Nexus Controller doesn't use Vite. It's a Python/FastAPI application with simple HTML templates.
The fix is to ensure you're running commands from the project directory, not System32.
After setup, verify everything works:
python --versionShould show: Python 3.10.0 or higher
dirShould show: app.py, requirements.txt, local_nexus_controller folder
python -c "import sys; print(sys.executable)"Should show path to your Python installation
start.batOr:
npm run devShould see:
INFO: Uvicorn running on http://0.0.0.0:5010
Visit: http://localhost:5010
You should see the Local Nexus Controller dashboard!
If you get "execution policy" errors in PowerShell:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserThen try running again.
The application uses these environment variables (optional):
LOCAL_NEXUS_PORT=5010
LOCAL_NEXUS_HOST=0.0.0.0
LOCAL_NEXUS_OPEN_BROWSER=true
LOCAL_NEXUS_RELOAD=trueCreate a .env file in the project root to customize these.
-
Check you're in the correct directory:
cdShould show your project path, not System32
-
Try the batch file:
start.bat
-
Check the full error message and see which method failed
-
Manual installation:
cd C:\path\to\local-nexus-controller pip install fastapi uvicorn sqlmodel jinja2 python-dotenv psutil python -m local_nexus_controller -
Check Python path:
where python
If all else fails, try using a Python virtual environment (see Issue 4 above).
When everything works, you'll see:
INFO: Will watch for changes in these directories: [...]
INFO: Uvicorn running on http://0.0.0.0:5010 (Press CTRL+C to quit)
INFO: Started reloader process [...]
INFO: Started server process [...]
INFO: Waiting for application startup.
INFO: Application startup complete.
Then open http://localhost:5010 in your browser!