Fix: TrackPad Scroll Not Working in nano on MacOS

If you are not able to scroll up and down using your mouse or TrackPad when editing a file using nano, it’s probably because your Terminal is using Pico instead of GNU nano.

This is because the latest versions of MacOS remove the nano text editor from the command line for whatever reason, and instead have replaced nano with pico.

To fix this scrolling issue, you just need to install the good old GNU nano.

How to Install GNU nano Text Editor on MacOS

Assuming you have Homebrew installed, installing nano on the Mac is super simple.

From the Terminal, type the following syntax:

brew install nano

Now just restart your terminal and ready! you’re back to using the GNU nano text editor at the command line.