Categories
JavaScript Answers

How to install only “devDependencies” using npm?

Spread the love

To install only "devDependencies" using npm, we use the --only-dev option.

To use it, we run

npm install --only=dev

to use the --only-dev option to only install dev dependencies.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *