NodeJS

Installation

$ doas pkg_add node

Upgrading npm

$ doas npm install -g npm@latest
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
+ npm@8.1.3
added 70 packages from 18 contributors, removed 290 packages and updated 148 packages in 33.467s
$ npm -v
8.1.3