Complete the code to install NestJS CLI globally using npm.
npm install -g [1]The correct package to install the NestJS CLI globally is @nestjs/cli. This allows you to use the nest command anywhere on your system.
Complete the command to check the installed NestJS CLI version.
nest [1]The command nest -v shows the installed NestJS CLI version. The -v flag is a common shorthand for version.
Fix the error in the command to install NestJS CLI locally as a dev dependency.
npm install [1] --save-devThe correct package to install locally as a dev dependency is @nestjs/cli. This installs the official NestJS CLI in your project.
Fill both blanks to create a new NestJS project named 'my-app' using the CLI.
nest [1] [2]
The command to create a new project is nest new my-app. The new keyword tells the CLI to create a project, and my-app is the project name.
Fill all three blanks to install NestJS CLI globally using yarn and verify its version.
yarn global [1] [2] && nest [3]
To install the NestJS CLI globally with yarn, use yarn global add @nestjs/cli. Then, check the version with nest -v.