This method works only if you've installed Node via NVM through Homebrew on macOS.
-
Reboot your Mac into Recovery Mode by restarting your computer and holding down
Command+R
until the Apple logo appears on your screen. -
Click
Utilities > Terminal
.