Course

npm

From what "npm install" actually does, to reading package.json, to protecting yourself from malicious packages — the tooling that underpins modern web development.

Start learning

What is npm? What does npm install actually do?

npm · Lesson 1 / 4

Getting to know npm2 lessons

  1. 01What is npm? What does npm install actually do?npm installnode_modules
  2. 02How to read package.jsonpackage.jsondependenciesscriptspackage-lock.json

Using it safely1 lesson

  1. 03npm's scary story—protecting yourself, learned from the Shai-Hulud incidentpackage-lock.json^1.2.3npm ci

Running a build1 lesson

  1. 04Run a build once (Sass → CSS)npm init -ynpm install -D sassnpm run build--watch.gitignore