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
npm for beginners
npm for beginners

Are you learning npm? Try our test we designed to help you progress faster.

Test yourself