Run "npm install lodash" in your terminal. What do you notice?
- Only Lodash is
       installed
       A package.json must have _________. - Both
       Which of the following is not a package manager? - gulp
       Installing a package in npm will ___________. - All of the options mentioned
       Which of the following is not an npm command? - auth
       NPM is a package manager for ____________. - Javascript programming language
       Which of the following commands can be used to check if the project has all
       latest versions of the packages? - npm outdated
       A_______ is a file or directory that is described by a package.json. - Package
       Which of the following commands can be used to install a package as a
       devDependency? - npm install <package name> --save-dev
       "npm config get prefix" command returns the path where __________ - global
       packages are installed
       Installing a package globally will download the package into node_modules
       directory and creates a command in the bin directory linking it to the package.
       - True
       Which of the following commands can be used to install package "lodash" with a
       specific minor version? - npm install lodash@3.1 --save
       Which of the following commands can be used to create user with access to npm
                                                  m
       registry? - npm adduser
                                            er as
       Which of the following commands can be used to publish a public package? - npm
                                                co
       publish --access=public
                                          eH w
       By default scoped packages are published as __________. - Private
       Documentation related to the package is usually available in __________. -
                                              o.
       README.md                        rs e
       Which of the following commands can be used to create a scoped package? - npm
                                      ou urc
       init --scope=<scopename>
       On trying to publish a package with name matching an existing package, npm will
       increment the major version and override the existing package in registry. -
       False
                                          o
                                    aC s
       Package names in npm registry do not have to be unique. - False
                                 v i y re
       "npm ls" is used to _________. - list installed modules
       npm by default installs packages in which scope? - Local
       What command is used to update and edit the contents of the user and global
       npmrc files? - npm config
       Which command allows users to lock down the versions of installed packages? -
                               ed d
       shrinkwrap
                             ar stu
       By default, npm installs any dependency in the global mode. - False
       The below command can be used to set the username as scope. - npm config set
       scope <username>
       Semantic Versioning (SemVer) is versioning convention composed of three numbers
       which are ____________. - Major.Minor.Patch
                           sh is
       Which of the following commands can be used to install npm packages globally? -
       npm install -g <package>
                 Th
       Arguments in the npm run command refers to __________ in package.json? -
       property configured in script object
       A package.json file _________. - All the options mentioned
       npm is __________. - Both
       Packages which are required only for development and testing are configured
       in__________. - devdependencies
       Scoped Packages begin with __________. - @
       Which of the following commands can be used to remove the packages that are not
       being used in a project? - npm prune
       Package Management Tool used by Facebook and Google is __________. - Yarn
       Which command helps to reduce duplication? - dedupe
       Which of the following commands help in updating npm packages? - npm update
       Sudo command is ______________. - Used to change permissions in npm
       Which of the following commands can be used to list top level modules? - npm
       list --depth 0
       Which of the command is a quicker way to generate a package.json file? - npm
This study source was downloaded by 100000832806195 from CourseHero.com on 11-04-2021 22:56:21 GMT -05:00
https://www.coursehero.com/file/42386229/NPM-Package-Manager-QAtxt/
                                          init -y
                                          Which of the following search commands returns all packages with name starting
                                          with Aj~? - npm search re~
                                          Which of the commands is used to change the public package to private? - npm
                                          access restricted <package_name>
                                          Which of the following command is used to find the version of npm? - - $ npm
                                          -version wrong --> $ npm getVersion
                                                                                     m
                                                                               er as
                                                                                   co
                                                                             eH w
                                                                                 o.
                                                                           rs e
                                                                         ou urc
                                                                             o
                                                                       aC s
                                                                    v i y re
                                                                  ed d
                                                                ar stu
                                                              sh is
                                                    Th
                                   This study source was downloaded by 100000832806195 from CourseHero.com on 11-04-2021 22:56:21 GMT -05:00
                                   https://www.coursehero.com/file/42386229/NPM-Package-Manager-QAtxt/
Powered by TCPDF (www.tcpdf.org)