Topic: npm Basics

Install package locally – npm

Preview

To install a package locally as a normal dependency, enter the following command in your terminal:

npm install package-name

To install a package locally as a devDependency, enter the following command in your terminal:

npm install package-name --save-dev

To view this and the other 250+ tutorials on Simple Dev, sign up for a 10-day free trial.