nerdexam
SAP

C_CPE_2409 · Question #52

Which command reads the dependencies from your package.json and downloads all the specified modules into your project?

The correct answer is D. npm install. npm install reads the dependencies and devDependencies listed in package.json and downloads all specified packages into the node_modules folder - making it the exact command described. npm build is not a valid built-in npm command (you'd use npm run build to execute a custom…

CAP Project Setup and Configuration

Question

Which command reads the dependencies from your package.json and downloads all the specified modules into your project?

Options

  • Anpm build
  • Bcds deploy
  • Ccds watch
  • Dnpm install

How the community answered

(36 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    3% (1)
  • D
    89% (32)

Explanation

npm install reads the dependencies and devDependencies listed in package.json and downloads all specified packages into the node_modules folder - making it the exact command described. npm build is not a valid built-in npm command (you'd use npm run build to execute a custom build script). cds deploy is an SAP CAP framework command used to deploy data models to a database, not to install packages. cds watch is another CAP command that starts a development server with live reload, unrelated to dependency management.

Memory tip: Think of npm install as "installing your shopping list" - package.json is the list, and npm install goes and fetches everything on it.

Topics

#npm install#package.json#dependencies#Node.js

Community Discussion

No community discussion yet for this question.

Full C_CPE_2409 Practice