NPM - Package Manager
NPM - Package Manager
NPM - Package Manager
No
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Questions
Which command helps to reduce duplication?
Scoped Packages begin with __________.
Which of the following commands can be used to publish a public package?
Sudo command is ______________.
Which of the following command is used to find the version of npm?
By default, npm installs any dependency in the global mode.
A package.json file _________.
Which of the following commands help in updating npm packages?
Which of the command is a quicker way to generate a package.json file?
Which of the following commands can be used to remove the packages that are not being used in a project?
Semantic Versioning (SemVer) is versioning convention composed of three numbers which are ____________.
npm by default installs packages in which scope?
npm is __________.
Packages which are required only for development and testing are configured in__________.
The below command can be used to set the username as scope.
Installing a package in npm will ___________.
Which of the following is not an npm command?
Which of the following is not a package manager?
A package.json must have _________.
Which of the following commands can be used to install package "lodash" with a specific minor version?
Installing a package globally will download the package into node_modules directory and creates a command i
directory linking it to the package.
Which of the following commands can be used to check if the project has all latest versions of the packages?
A_______ is a file or directory that is described by a package.json.
Which of the following commands can be used to install a package as a devDependency?
"npm config get prefix" command returns the path where __________
Which of the following commands can be used to create a scoped package?
Which of the following commands can be used to create user with access to npm registry?
By default scoped packages are published as __________.
Documentation related to the package is usually available in __________.
On trying to publish a package with name matching an existing package, npm will increment the major version
existing package in registry.
Which of the following search commands returns all packages with name starting with Aj~?
Package Management Tool used by Facebook and Google is __________.
"npm ls" is used to _________.
Which of the following commands can be used to list top level modules?
Package names in npm registry do not have to be unique.
What command is used to update and edit the contents of the user and global npmrc files?
Which command allows users to lock down the versions of installed packages?
Which of the following commands can be used to check if the project has all the latest versions of the packages
Arguments in the npm run command refers to __________ in package.json?
Which of the following commands can be used to install package "lodash" with a specific major version and lat
patch versions?
Which of the following commands can be used to install npm packages globally?
Which of the commands is used to change the public package to private?
Run "npm install lodash" in your terminal. What do you notice?
NPM is a package manager for ____________.
Answers
dedupe
@
npm publish --access=public
Used to change permissions in npm
$ npm --version $ npm getVersion
0
All the options mentioned
npm update
1. npm init -x
2. npm install -x
npm prune
Major.Minor.Patch
Local
Both
devdependencies
npm config set scope <username>
All of the options mentioned
auth
gulp
Both
npm install [email protected] --save
1
npm outdated
Package
npm install <package name> --save-dev
global packages are installed
npm init @<scopename> npm init --scope=@<scopename>
npm adduser
Private
README.md
0
npm search re npm search -re~
NPM Grunt
list installed modules
npm list
1
npm config
shrinkwrap
npm checklatest
property configured in script object
npm install lodash@3 --save
npm install -g <package>
npm access restricted <package_name>
Lodash, async and mocha are installed
Javascript programming language