npm install different package version code example Example: npm install different version npm install [package]@[version]