change version of npm that comes with node code example Example: how to change version of npm cd ~/.nvm/versions/node/v4.2.2/lib npm install npm