npm install --force package

Category: Node.js & npm/yarn

npm install --force package

Force reinstall even if the package already exists, bypassing cache checks

Forces npm to re-download and reinstall even if the package is already present locally, ignoring the cache. Useful for resolving corrupted installs.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.