Will npm delete the old version before installing the new version?

Will the

npm delete the old version before installing the new version?
or will both exist just referencing the new version?

May.30,2021

No, you need to change the references yourself. The installation of


npm is overridden. For example, now npm3.x , npm install-g npm@latest will be npm6.x after the upgrade.
npm3.x will not exist.


it is strongly recommended to use nvm to manage npm versions. For more information, please see
https://github.com/creationix.

.
Menu