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 JuniorWhat metadata does the npm file package.json contain?
npm JuniorWhat are dependencies and devDependencies in package.json and what is the difference between them?
npm JuniorWhat are project dependencies in general?
npm JuniorWhat format does the package.json file use?
npm Junior