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