Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Update npm Packages To Their Latest Version

The yolo way to do it is:

Code

npx npm-check-updates -u
npm i

the `npx npm-check-updates -u` updates the `package.json` file with all the latest versions (including major version changes)

then, running `npm i` does the install of all those latest modules from the `package.json` file

If you just want to do a single package, do:

Code

npm install PACKAGE_NAME@latest