💾 Archived View for henn.es › cheatsheet › npm.gmi captured on 2023-07-22 at 16:17:48. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-03-20)
-=-=-=-=-=-=-
npm config set prefix '~/.local/'
The config is stored in `~/.npmrc`. Executables are stored in `~/.local/bin`. Node modules are stored in `~/.local/lib/node_modules/`. Make sure `~/.local/bin` is part of `$PATH`.
npm install -g npm@latest npm install -g node@lts
Updates to latest version of npm and latest LTS version of node.