All quizzes
Free quiz · 35 questions in the bank

npm quiz

Test your npm knowledge with a free interactive quiz — 35 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What does `npm install` (with no arguments) do?

Questions in this quiz
  1. What does `npm install` (with no arguments) do?
  2. What is the role of `package.json` in a Node.js project?
  3. Which command adds `lodash` to `dependencies` and installs it?
  4. What does `npx` do?
  5. What is `node_modules`?
  6. What does `npm run build` do?
  7. What is the difference between `dependencies` and `devDependencies`?
  8. What is the purpose of the `scripts` field in package.json?
  9. What is a scoped package like `@myorg/utils`?
  10. How do you install a package globally?
  11. In semver `^1.4.2`, which updates does the caret allow?
  12. Which scripts run automatically when someone runs `npm install`?
Gaps to close?
Read the curated npm notes — core concepts, patterns, interview prep.
npm notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web