# update nvm remote nvm ls-remote # install latest npm or npm lts nvm install-latest-npm nvm intall --lts # select required version of npm, I always use the long term supported version nvm use --lts