volta install npm@10

Category: Node.js & npm/yarn

volta install npm@10

Install a specific npm version and pin it as the default with Volta

Installs npm version 10 globally via Volta. Volta ensures the right npm version is used wherever you are.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.