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