npm deprecate package@version 'Use newpkg instead'

Category: Node.js & npm/yarn

npm deprecate package@version 'Use newpkg instead'

Mark a published package version as deprecated with a warning message shown to installers

Marks an old published version as deprecated so anyone trying to install it sees your warning message — keeps the ecosystem clean without removing code.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.