get version of package from npm code example Example 1: npm get latest version of package npm show {pkg} version Example 2: npm get version npm view <package> version