cli.fail

Practice this fail.

Why is this package here?

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 · Intermediate

In a trusted installed npm project, explain which dependency chain brought in lodash. Do not install or remove anything.

Why is this package here?

$ npm ls lodash

lodash appears deep in the tree.

How do you ask npm why lodash is installed?

3 attempts remaining

Read why this fix works

Why is this package here?

npm explain lodash

npm explain prints the dependency chain responsible for an installed package. This helps distinguish a direct dependency from a transitive one.

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

Copy your result