Using npm, how do you install project dependencies?
Experience Level:
Junior
Tags:
npm
Answer
To install dependencies, open the command-line, change your current directory to the directory that contains your project with file package.json and run the following command:
npm install
Related npm job interview questions
-
What information is stored about every dependency in the npm file package.json?
npm Junior -
What metadata does the npm file package.json contain?
npm Junior -
What are dependencies and devDependencies in package.json and what is the difference between them?
npm Junior -
What are project dependencies in general?
npm Junior -
What format does the package.json file use?
npm Junior