Package manager for node.js Install Node.js, npm comes along with it Other package manager for node: pnpm yarn
Most packages should be installed locally Some packages need to installed globally to access from any directory in your computer.
npm install -g packagename
Gets installed inside project folder
npm install packagename
package.json package-lock.json
npm init
npm init -y
npm i
node_modules
npm list
major.minor.patch
Major - big changes; not backwards-compatible Minor - backwards-compatible Patch - small bug fixes
1.0.0 - first public release
npm view packagename versions
npm update packagename