Home/Tutorials/Node.js/npm and package.json

0 of 3 saved

Node.js5 min read

npm and package.json

Read this chapter, write the program on this page, then pass a short check to open the next one.

Install and declare dependencies.

npm and package.json

package.json lists name, scripts, and dependencies. npm install downloads packages into node_modules.

  • dependencies vs devDependencies.
  • npm run start runs scripts.start.
  • Lockfiles keep installs repeatable.
console.log("package-json");

After you read this chapter, use Write (when available) and Quiz on this page to lock it in.