NPM Package Manager Q A
NPM Package Manager Q A
NPM Package Manager Q A
- 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
registry? - npm adduser
Which of the following commands can be used to publish a public package? - npm
publish --access=public
By default scoped packages are published as __________. - Private
Documentation related to the package is usually available in __________. -
README.md
Which of the following commands can be used to create a scoped package? - npm
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
This study source was downloaded by 100000846996349 from CourseHero.com on 06-16-2022 07:04:45 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
This study source was downloaded by 100000846996349 from CourseHero.com on 06-16-2022 07:04:45 GMT -05:00
https://www.coursehero.com/file/42386229/NPM-Package-Manager-QAtxt/
Powered by TCPDF (www.tcpdf.org)