npm install package@2.3.1
Category: Node.js & npm/yarn
npm install package@2.3.1
Install an exact specific version of a package
Installs exactly version 2.3.1 of a package — useful when a specific version is known to work and newer versions have breaking changes.