how to check for npm version code example Example 1: find npm version npm --version Example 2: npm get version npm view <package> version