We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

NPM

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.

Assignment

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.