

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: JavaScript Runtimes
incomplete
2: Node.js
incomplete
3: NPM
incomplete
4: DOM
incomplete
5: ECMAScript
incomplete
6: Polyfills and Transpilers
incomplete
This lesson's interactive features are locked, please to keep using them
Now that you've got node working, its important to understand that... you probably won't use it directly very often. Instead, you'll use npm (Node Package Manager) to install and manage packages.
npm is a package manager for JavaScript. It's the world's largest software registry, with over 1.3 million packages of code. It's the home of many useful libraries such as:
If you're familiar with Python, npm is similar to pip or uv. If you're familiar with Go, npm is similar to go get.
It's fine to just accept the defaults. You can run npm init -y to do that - it creates a basic package.json with common defaults.
The package.json file is what Node.js uses to manage dependencies, scripts, and other metadata about your project.
The scripts section of the package.json file is where you can define custom scripts that can be run with npm run <script-name>.
Run and submit the CLI tests.