Node.js · 14-day planAll days
Day 3 of 14 30 minnpmScriptsSemver
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
- 1Starting a project
- 2Scripts
- 3Semantic versioning
- 4The lockfile
- 5npx: run without installing
- 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