Skip to content

Instantly share code, notes, and snippets.

@Silverbullet069
Last active April 20, 2023 14:58
Show Gist options
  • Save Silverbullet069/cb012b0a1273b93e2fa5f67e288debc8 to your computer and use it in GitHub Desktop.
Save Silverbullet069/cb012b0a1273b93e2fa5f67e288debc8 to your computer and use it in GitHub Desktop.
[Node NVM NPM] Some notes about node related #linux #node #nvm #npm

Versioning

You should only use LTS version for stable use, both for development and production.

Updated 20/04/2023, latest version of Node: v18.16.0

Do not use node without version control tool like nvm or n

Install latest version

nvm install node

npm i -g npm@latest

Install custom version

List all version: nvm ls-remote

Install latest LTS version (20/04/2023): nvm install 18.17.0

Switch to other version

nvm use 18.16.0

Set default

nvm alias default 18.16.0

Delete version

nvm uninstall v18.11.0

Get current version's directory

npm config get prefix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment