Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

Jason Choi
seal-mask
.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

Hello.

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,246 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.