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