NPM

Upgrade dependencies

Install globally npm-check-updates

npm i -g npm-check-updates

Check updates

ncu -u

Execute updates

npm update

Global packages

If you want to keep your global npm packages you can set global path

vim ~/.npmrc
~/.npmrc
prefix=~/.npm/bin
cache=~/.npm/cache

Add to ~/.zshrc

vim ~/.zshrc
~/.zshrc
export PATH=~/.npm/bin:$PATH
source ~/.zshrc
nvm use --delete-prefix v18.15.0 --silent

Now you can install additional useful packages

Self update

Update npm

npm install -g npm