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