how to check node js install code example Example 1: find npm version npm --version Example 2: get local node version node --version