How to Install Nano on Windows 10/11

Опубликовано: 30 Сентябрь 2026
на канале: xyxpr
48
2

How to Install GNU Nano on Windows using PowerShell 7 and Scoop

In this video, I'll show you how to install GNU Nano on Windows using PowerShell 7 and Scoop.

Nano is a lightweight terminal text editor that can be used to create and edit files directly from the command line.

━━━━━━━━━━━━━━━━━━━━━━
📌 REQUIREMENTS
━━━━━━━━━━━━━━━━━━━━━━

• Windows 10 or Windows 11
• PowerShell 7 recommended
• Scoop package manager

PowerShell 5.1 can run Nano, but Scoop installation may encounter ZIP extraction compatibility issues with some newer packages. PowerShell 7 is recommended.

━━━━━━━━━━━━━━━━━━━━━━
1️⃣ CHECK POWERSHELL VERSION
━━━━━━━━━━━━━━━━━━━━━━

Run:

$PSVersionTable.PSVersion

If the Major version is 7 or higher, you already have PowerShell 7 and can skip the PowerShell installation step.

━━━━━━━━━━━━━━━━━━━━━━
2️⃣ INSTALL POWERSHELL 7
━━━━━━━━━━━━━━━━━━━━━━

If you are still using PowerShell 5.1, run:

winget install --id Microsoft.PowerShell --source winget

After installation:

1. Close PowerShell.
2. Open PowerShell again.
3. Run:

pwsh

Then verify:

$PSVersionTable.PSVersion

PowerShell 5.1 and PowerShell 7 can exist on the same computer. You do not need to uninstall PowerShell 5.1.

━━━━━━━━━━━━━━━━━━━━━━
3️⃣ INSTALL SCOOP
━━━━━━━━━━━━━━━━━━━━━━

Set the execution policy for your current user:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

When prompted, choose:

Y

Then install Scoop:

irm get.scoop.sh | iex

If Scoop is already installed, check it with:

scoop --version

If a version is displayed, you can skip the Scoop installation.

━━━━━━━━━━━━━━━━━━━━━━
4️⃣ INSTALL GNU NANO
━━━━━━━━━━━━━━━━━━━━━━

Run:

scoop install nano

Scoop will download and install Nano and make the "nano" command available in your terminal.

━━━━━━━━━━━━━━━━━━━━━━
5️⃣ VERIFY THE INSTALLATION
━━━━━━━━━━━━━━━━━━━━━━

Run:

nano --version

If Nano was installed successfully, its version information will be displayed.

━━━━━━━━━━━━━━━━━━━━━━
6️⃣ USE NANO
━━━━━━━━━━━━━━━━━━━━━━

Create or edit a file:

nano file.txt

Examples:

nano config.js

nano .env

━━━━━━━━━━━━━━━━━━━━━━
⌨️ USEFUL NANO SHORTCUTS
━━━━━━━━━━━━━━━━━━━━━━

In Nano, ^ means Ctrl.

Ctrl + O → Save the file
Ctrl + X → Exit Nano
Ctrl + W → Search for text
Ctrl + K → Cut a line
Ctrl + U → Paste a line
Ctrl + G → Open help
Ctrl + C → Show cursor position

To save a file:

Ctrl + O
Press Enter to confirm the filename.

To exit:

Ctrl + X

━━━━━━━━━━━━━━━━━━━━━━
⚡ QUICK INSTALLATION
━━━━━━━━━━━━━━━━━━━━━━

If PowerShell 7 and Scoop are already installed:

scoop install nano

Verify:

nano --version

Start Nano:

nano file.txt

━━━━━━━━━━━━━━━━━━━━━━
🔗 USEFUL LINKS
━━━━━━━━━━━━━━━━━━━━━━

PowerShell:
https://learn.microsoft.com/powershell/

Scoop:
https://scoop.sh/

GNU Nano:
https://www.nano-editor.org/

━━━━━━━━━━━━━━━━━━━━━━
🎵 MUSIC
━━━━━━━━━━━━━━━━━━━━━━

Phonk TikTok Instagram
by APALONBeats

Pixabay:
https://pixabay.com/music/phonk-phonk-tikt...

━━━━━━━━━━━━━━━━━━━━━━

If this tutorial helped you, consider liking the video and subscribing for more programming, Windows, terminal, and developer tutorials.

#Nano #PowerShell #Windows #Scoop #WindowsTutorial #Terminal #Programming