Node version will not update using n
问题 To give some context, I set up my machine using this Medium post, Don’t Use sudo with npm …still. I installed Node using brew about a year and a half ago, which installed v12.18.1. I also installed n at the time using brew , but never had to change versions until now. My .zshrc file includes the following: # For globally installed npm packages (without using sudo) export PATH="$HOME/.npm/bin:$PATH" # Path to n (managing node versions) export N_PREFIX="$HOME/.n" export PATH="$PATH:$N_PREFIX