Common issues and their solutions.
Symptom:
.\Scripts\Setup.ps1 : File cannot be loaded because running scripts is disabled on this system.
Solution:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserSymptom:
winget : The term 'winget' is not recognized
Solutions:
-
Update Windows:
- Open Settings → Windows Update
- Install all available updates
- Restart your computer
-
Install App Installer:
- Open Microsoft Store
- Search for "App Installer"
- Click "Get" or "Update"
-
Manual Installation:
- Download from GitHub
- Install the
.msixbundlefile
Symptom:
WARNING: Unable to resolve package source 'PSGallery'
Solution:
# Trust PSGallery
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
# Re-run setup
.\Scripts\Setup.ps1Symptom: Setup appears frozen on a specific package installation.
Cause: Timeout protection should prevent this, but if it occurs:
Solution:
- Wait for 60-second timeout
- Press
Ctrl+Cto cancel - Check logs in
.\Scripts\Logs\ - Re-run setup (already installed components will be skipped)
Symptom:
Installation failed for Local Admin Shares Policy
Permission denied / access denied
Cause:
-EnableAdminShares writes to an HKLM policy key and requires elevation.
Solution:
# Start PowerShell using "Run as Administrator", then:
.\Scripts\Setup.ps1 -EnableAdminShares
# Verify the registry value
Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name LocalAccountTokenFilterPolicySymptom: Weird characters or boxes in prompt.
Solutions:
-
Font Issue:
# Reinstall font oh-my-posh font install CascadiaCode
-
Terminal Font Settings:
- Open Windows Terminal settings
- Set font to "CaskaydiaCove Nerd Font Mono"
- Restart terminal
Symptom:
yazi : The term 'yazi' is not recognized
Solution:
# Restart terminal to refresh PATH
# Or manually add to PATH
$env:PATH += ";$env:LOCALAPPDATA\Microsoft\WinGet\Links"
# Reload profile
. $PROFILESymptom: No git branch or status in prompt when in a git repository.
Solutions:
-
Ensure posh-git is installed:
Get-Module -ListAvailable posh-git
-
Reload profile:
. $PROFILE
-
Check oh-my-posh theme:
- Ensure theme includes git segment
Symptom: Yazi plugins don't appear to work.
Solution:
# Check plugin installation
ya pkg list
# Reinstall plugins
ya pkg add "yazi-rs/plugins:git"
ya pkg add "Tsabo/githead"Symptom: Yazi doesn't show file previews.
Cause: Missing optional dependencies.
Solution:
# Install all optional dependencies
Install-YaziOptionalsSymptom: Custom Yazi configuration changes are lost.
Cause: Git pull overwrites local changes.
Prevention: The setup now detects local modifications and skips pulling updates.
Manual Update:
cd $env:APPDATA\yazi
git stash
git pull
git stash popSymptom:
Update.ps1 reports errors.
Solution:
# Update with detailed output
.\Scripts\Update.ps1 -Verbose
# Check specific component
.\Scripts\Test.ps1Symptom: PowerShell modules show as outdated but won't update.
Solution:
# Force update
Update-Module -Name PSFzf -Force
Update-Module -Name Terminal-Icons -Force
Update-Module -Name posh-git -Force# Run test script
.\Scripts\Test.ps1
# Check specific component
Get-Command oh-my-posh
Get-Command yazi
Get-Module -ListAvailable PSFzf# View latest log
Get-Content .\Scripts\Logs\Setup_*.log | Select-Object -Last 50
# Search for errors
Get-Content .\Scripts\Logs\Setup_*.log | Select-String "error|fail"# Check if tools are in PATH
$env:PATH -split ';' | Where-Object { $_ -like '*winget*' -or $_ -like '*yazi*' }# Verify profile exists
Test-Path $PROFILE
# Check profile content
Get-Content $PROFILE
# Reload profile
. $PROFILEIf you're still experiencing issues:
- Check Logs: Review
.\Scripts\Logs\for detailed error messages - Run Tests: Execute
.\Scripts\Test.ps1for component status - Clean Install: Remove installed components and re-run setup
- GitHub Issues: Open an issue with logs and error messages
See the FAQ for common questions.