npm through cmd code example Example 1: find npm version npm --version Example 2: get local node version node --version