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 Installing Packages with npm Installing Local Packages

Cannot install bcryptjs.

treehouse:~/workspace$ npm install bcryptjs
npm WARN saveError ENOENT: no such file or directory, open '/home/treehouse/workspace/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/treehouse/workspace/package.json'
npm WARN workspace No description
npm WARN workspace No repository field.
npm WARN workspace No README data
npm WARN workspace No license field.

  • bcryptjs@2.4.3
    updated 1 package and audited 440 packages in 3.31s
    found 0 vulnerabilities

2 Answers

I also had this but if click on the folder section (left hand side) and click button 'refresh' the folder should appear.

I'm still having issue accessing it though as it says i have an internet connection issue. This is obviously not true but unclear why it's happening

correction::

i did install by using command npm install. This installed all the available modules i believe, however there are still time out persistent

is disconnects often? I don't see it as an internet connection issue but rather a processing power issue. Any ideas?

Tristan Dauvergne
Tristan Dauvergne
7,764 Points

I'm having this same issue. When I click on node_modules folder it disconnects from the workspace.