0
0
NestJSframework~10 mins

NestJS CLI installation - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to install NestJS CLI globally using npm.

NestJS
npm install -g [1]
Drag options to blanks, or click blank then click option'
A@nestjs/cli
Bnestjs-cli
Cnest-cli
Dnestjs
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'nestjs-cli' or 'nest-cli' which are not the official package names.
Installing 'nestjs' which is not the CLI tool.
2fill in blank
medium

Complete the command to check the installed NestJS CLI version.

NestJS
nest [1]
Drag options to blanks, or click blank then click option'
A-v
Blist
Cversion
D--version
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'nest --version' which is valid but not the expected answer here.
Using 'nest list' which lists commands, not version.
3fill in blank
hard

Fix the error in the command to install NestJS CLI locally as a dev dependency.

NestJS
npm install [1] --save-dev
Drag options to blanks, or click blank then click option'
Anestjs-cli
Bnestjs
Cnest-cli
D@nestjs/cli
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'nestjs' which is not the CLI package.
Using 'nest-cli' or 'nestjs-cli' which are incorrect package names.
4fill in blank
hard

Fill both blanks to create a new NestJS project named 'my-app' using the CLI.

NestJS
nest [1] [2]
Drag options to blanks, or click blank then click option'
Anew
Bcreate
Cmy-app
Dapp
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'create' instead of 'new' for the command.
Using 'app' instead of the intended project name.
5fill in blank
hard

Fill all three blanks to install NestJS CLI globally using yarn and verify its version.

NestJS
yarn global [1] [2] && nest [3]
Drag options to blanks, or click blank then click option'
Ainstall
B@nestjs/cli
C-v
Dadd
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install' instead of 'add' for yarn global command.
Using incorrect package names.
Using '--version' instead of '-v' for version check.