Install nano on Windows

I’m a bit fascinated with nano editor and since I spend most of the time on linux terminal- it becomes my first choice over vi editor 🙂

Long story short, you can install it on windows in 2 methods-

Method-1: Windows Command Prompt

You can just easily install Nano via WinGet, which is Windows’ package manager if you’re on Windows 10 or later. Open command prompt as admin and type this in:

winget install GNU.Nano

Method-2: Windows Powershell

Install Chocolatey using Powershell:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Run choco install -y nano.
Run nano: nano.

Alternately, if you already have git installed, just run C:\Program Files\Git\usr\bin\nano.exe

Ref:
https://superuser.com/questions/1493801/how-to-install-the-nano-cli-editor-on-windows-10

Share