cli.fail

Practice this fail.

A tool, not a runtime dependency.

npm · Restart as often as you like

Read the error, choose a command, and learn
why it works. Nothing runs on your machine.

Browse all practice ↗

npm · Beginner

This trusted project needs the package typescript as a development dependency. You intend to install it and update the manifest and lockfile.

A tool, not a runtime dependency.

$ cat package.json

No TypeScript dependency is declared.

How do you install TypeScript as a development dependency?

3 attempts remaining

Read why this fix works

A tool, not a runtime dependency.

npm install --save-dev typescript

--save-dev records the package under devDependencies while installing it locally. Review the dependency and resulting lockfile, as with any intended package change.

Practice rounds do not affect the daily score or local streak. Try today’s challenge, or choose another scenario.

Copy your result