get a specific version npm code example Example 1: npm install specific version $ npm i [email protected] Example 2: npm get version npm view <package> version