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