H
H
Hackerbot14882020-08-10 13:21:42
Node.js
Hackerbot1488, 2020-08-10 13:21:42

How to install dependencies only from dependencies?

5f311ec9aee6c787184439.png
How to install dependencies only from the dependencies section? Maybe there is some parameter for npm i?
Or do I need to edit package.json?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tigran Abrahamyan, 2020-08-10
@Hackerbot1488

npm installinstalls both dependencies and devDependencies
npm install --production installs only dependencies
npm install --dev installs only devDependencies

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question