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 User Authentication With Express and Mongo What is Authentication? Setting Up the Project

Yuichi Narisawa
Yuichi Narisawa
19,548 Points

npm Install doesn't work

Even though I made a package.json in the directory with npm init, I cannot install npm.

I got "npm WARN user_authentication_with_express_and_mongo@1.0.0 No description npm WARN user_authentication_with_express_and_mongo@1.0.0 No repository field." and empty node_modules directory.

My node is v7.4.0, and npm is v4.3.0.

Please help!

3 Answers

When you download the zip file provided by Dave, you'll access the project folder in the command line. When you access the folder called JavaScript-user-auth-express, you have to access a second folder called complete. This is where you will run the commands like npm install and npm start because this is the folder that has the package.json file in it.

Hopefully this works for you!

Yuichi Narisawa
Yuichi Narisawa
19,548 Points

Hi, Shaunhoyes! Thank you for your time to answer my question. It helped a lot! ;)

Tri Pham
Tri Pham
18,671 Points

Those are WARNings (not ERRORS). Did everything actually get installed? Recheck if you are looking in the right folder. Also if you are looking in a text editor it might just not be refreshing.

Yuichi Narisawa
Yuichi Narisawa
19,548 Points

Thanks for the reply. I checked my Mac, and it should be installed... Also, I tried to uninstall & re-install them, but it failed. I don't know what's wrong with it, but thanks anyway.

i am having a similar issue where can i get the downloaded zip files ? is it on github?