Single Choice Easy

QWhich of the following commands can be used to install package "lodash" with a specific minor version?

ID: #19370 Semantic Versioning in npm 108 views
Question Info
#19370Q ID
EasyDifficulty
Semantic Versioning in npmTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A npm install lodash@3.1 --save
  • B npm install lodash --save
  • C npm install lodash@3.1.1 --save
  • D npm install lodash@3 --save
Correct Answer

Explanation

To install a specific minor version of the "lodash" package, you can use the following command:


npm install lodash@3.1 --save

This command installs the "lodash" package with version 3.1 and saves it as a dependency in the package.json file.

Share This Question

Challenge a friend or share with your study group.