npm(node.js) - Basic Command Description #
- npm - Automatically installed when Node.js is installed.
- In real projects, knowing how to install, remove, and manage versions of npm-based modules is crucial.
- Early in a project, strict version management for each module is essential to avoid issues later on.
npm - Help Option(-h) #
# Check npm commands
npm -h
# Check details for a specific npm command
npm command -h
npm - list #
# Check modules installed in the current project
npm list
# Check globally installed modules
npm list -g
# depth option
npm list -g --depth=0
npm - view #
# Check the latest version of a module
npm view module_name version