Cellv2's Blog

Upgrade npm packages to latest

October 04, 2020

This will be short and sweet, but still a TL;DR:
npx npm-check-updates -u
npm i

Firstly, ensure that you have a backup, whether that be through a VCS (such as git) or a copy on disk, because this could make things go really south.

Secondly, ensure you have npx installed - this should come with npm 5.2+, and you need NodeJS 5.6+ to run this.

Thirdly, go to the command line and put the following:
npx npm-check-updates -u

Finally, run the below to install the latest packages.
npm i


Written by Rich Armstrong who aspires to the purity of the blessed machine (he means he likes making useful tools, normally with TypeScript).