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

Jason Choi
.a{fill-rule:evenodd;}techdegree seal-36
Jason Choi
Front End Web Development Techdegree Graduate 21,159 Points

There are bunch of other packages installed in node_modules folder


When I installed bcrypt on workspaces, there's a bunch of other packages (about 30 packages) installed in the node_modules folder. (such as are-we-there-yet, boom, growl, hawk, graceful-fs, punycode, tough-cookie, wrappy). Are these packages that are automatically installed when bcrypt is installed? or is there something wrong going on with my workspaces?

Thank you!

1 Answer

Joel Bardsley
Joel Bardsley
31,238 Points

Hi Jason,

What you're seeing is normal, don't worry. Packages often rely on other packages to function as intended.

If you take a look at the package information for bcrypt you'll see a Dependencies section, which has two packages listed. If you click into one of those, i.e. node-pre-gyp, you'll see that that has further dependencies, so installing bcrypt means you're also downloading and installing all the dependencies to get bcrypt to work properly.

Hope that makes sense. If you need any further information, let me know.