Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript npm Basics (retiring) Installing Packages with npm Managing Dependencies in the package.json File

Sankar Cherukuri
Sankar Cherukuri
9,837 Points

What is the Exact meaning and types & usage of Dependency in NPM?

Any One Provide me the details about dependencies in npm......

1 Answer

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 90,689 Points

To me, a dependency is what it suggests... a package or component that is required for an npm package to run. It is a module or set of modules that another module uses. To install them simply install them in your command like the same way you would the main package.

Hope this makes sense. :)