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

Unable to install bcrypt

I get this error in the console log

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.147s
    found 0 vulnerabilities

treehouse:~/workspace$

I also get a second error where it thinks the internet connection is lost

Myers Carpenter
Myers Carpenter
6,111 Points

The warnings are normal. Usually when using NPM you have run npm init for your project which creates a packages.json file. In this example we didn't do that.

I'm not sure about "I also get a second error where it thinks the internet connection is lost".