npm install package@latest

Category: Node.js & npm/yarn

npm install package@latest

Install the newest published version of a package

Installs the most recently published version, even if it's a major upgrade. Useful for getting the absolute newest release.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.