Tätä selainta ei enää tueta.
Päivitä Microsoft Edgeen, jotta voit hyödyntää uusimpia ominaisuuksia, suojauspäivityksiä ja teknistä tukea.
Choose the best response for each question.
How would you install a test framework like Jest?
Run npm install jest
npm install jest
Run npm install jest --save-dev
npm install jest --save-dev
Run npm install jest --save
npm install jest --save
Run npm download jest --save-dev
npm download jest --save-dev
What is the main reason to use npx?
The dependency is downloaded directly into the Node.js process and is removed after the command is run. This tool is great for when you want to run commands infrequently.
Installing dependencies by using npx is more secure than installing them globally.
Installing dependencies by using npx is faster than installing them globally.
You don't have to use sudo before running it as you would for a global installation.
How do you configure a package.json file so that you get only patch (bug fix) updates?
Locate the entry in dependencies or devDependencies. Set the entry to look like this one: "<library>": "*"
dependencies
devDependencies
"<library>": "*"
Locate the entry in dependencies or devDependencies. Set the entry to look like this one: "<library>": "1.x.0"
"<library>": "1.x.0"
Locate the entry in dependencies or devDependencies. Set the entry to look like this one: "<library>": "1.0.x"
"<library>": "1.0.x"
Locate the entry in dependencies or devDependencies. Set the entry to look like this one: "<library>": "^1.0.x"
"<library>": "^1.0.x"
What are some recommended scripts to set up in a package.json at the start of a project?
start, test, build
start, test
start
start, test, lint, build
You must answer all questions before checking your work.
Onko tästä sivusta apua?