User Tools

Site Tools


node_cheat_sheet

This is an old revision of the document!


Node

Keywords: Node, Node.js, NPM

Version Syntax

  • ^1.2.3 means everything above, excluding major version increases. ๐Ÿ—น 1.2.4, 1.3.1 ๐Ÿ—ต 2.0.0.
  • ~1.2.3 mean everything above, excluding major and minor version increases. ๐Ÿ—น 1.2.4 ๐Ÿ—ต 1.3.1, 2.0.0.

NPM (Node Package Manager) Commands

npm list -g --depth=0 Show all globally installed packages.
npm uninstall -g <package-name> Uninstall a global package.
npm view <package-name> versions List the available versions of a package.
npm view <package-name>@1.3.1 dependencies List the dependencies of a particular version of a package.
npm info <package-name> List a shit ton of info about package.

NVM (Node Version Manager) Commands

nvm on Enable Node Version Manager.
nvm off Enable Node Version Manager.
nvm ls List installed Node versions, including currently selected version.
nvm use <version> Use <version>.
node_cheat_sheet.1759116566.txt.gz ยท Last modified: 2025/09/29 03:29 by stephen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki