cli.fail

Practice this fail.

Less dependency tree, please.

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

Inspect only the installed top-level dependency overview for the current npm project. Do not change packages.

Less dependency tree, please.

$ npm ls

The nested tree is very long.

How do you limit the dependency listing to depth zero?

3 attempts remaining

Read why this fix works

Less dependency tree, please.

npm ls --depth=0

npm ls reports installed dependencies. --depth=0 limits the tree to the top-level overview. Unmet or invalid dependencies may still make the command exit nonzero.

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

Copy your result