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