Skip to content
skillbld
Node.js · 14-day planAll days
Day 3 of 14 30 min

Use npm, the package manager that comes with Node. Create a package.json, install dependencies and dev dependencies, run scripts, understand semantic versioning and lockfiles, run tools with npx, and keep dependencies safe.

By the end of today you can

  • Create and read a package.json
  • Install, update and remove packages
  • Tell dependencies from devDependencies
  • Read version ranges like ^1.4.2 and ~1.4.2
  • Run project scripts and one-off tools with npm run and npx

What's inside

  • 6 sections
  • 2 diagrams and mind maps
  • 2 code examples you can run
  • 5-question quiz
  1. 1Starting a project
  2. 2Scripts
  3. 3Semantic versioning
  4. 4The lockfile
  5. 5npx: run without installing
  6. 6Keeping dependencies safe

Sign in free to read this lesson

Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.

Sign in free

Keep going

Day 3: npm & package.json · Node.js · SkillBld