how to know npm version code example Example 1: find npm version npm --version Example 2: npm get version npm view version