Which of the following method allows to upgrade an existing package by using npm?
npm refresh existing-package
npm new existing-package
npm update existing-package
npm renew existing-package
Which of the following method allows to uninstall an existing package by using npm?
npm detach existing-package
npm remove existing-package
npm uninstall existing-package
npm delete existing-package
Which flag should be used when installing a new module to add it to devDependencies property in the package.json?
devDependencies
package.json
npm install typescript
--save
--add
-g
--save-dev
Which flag should be used when installing a new module to add it to dependencies property in the package.json?
dependencies
npm install express
--dry-run
none of the above
Fill the gap to create a new package.json by using npm command:
npm
Which of the following flag allows to install package globally?
-m
-f
-p
Which of the following method allows to install all dependencies listed in package.json?
npm install all
npm init
npm install
npm get
How to load a custom module in Node.js?
require(users)
require("./node_modules/users")
require("./users")
require("users")
The Node.js is:
a superset of JavaScript
an open source runtime environment for server-side
a package manager for the JavaScript runtime environment
a testing framework for JavaScript
How to load a module that is located in node_modules/ folder in Node.js?
node_modules/
require("./express")
require(express)
require("../express")
require("express")
«12»