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 Global Packages

http-server issues on windows

Hi there,

So i have run through an issue trying to install the http-server. One of the options was to reinstall npm and node which I did yesterday so I don't think that will solve the problem... On the other hand, there was a link to resolve this but this is not working on Windows... is there anyone able to assist please? this is the link provided on the teachers notes that does not run on windows: https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally

Many thanks

1 Answer

James Crosslin
.a{fill-rule:evenodd;}techdegree seal-36
James Crosslin
Full Stack JavaScript Techdegree Graduate 16,741 Points

Hi Silvia! Without a description of your error, it is difficult to figure out how to help. Is it specifically a permissions error? Can yo

I know this isn't what you asked, but here is some alternate advice:

Personally, I wouldn't bother downloading http-server. If you use a text editor on your local machine, there are robust extensions for achieving this same thing while you're still learning. For instance, I use VS Code with the Live Server extension by Ritwick Dey. It offers a gui button in your editor that clicks to generate an immediate server for the purposes described in the video.

Also, if you continue to use Windows for development, you will continue to run into issues like this. My best advice is to switch operating systems to a more developer friendly os based on gnu, linux, or unix. I hadn't even touched a Mac (which uses a linux based OS) before a month ago, but switching from Windows made all the difference in my ability to work efficiently. I don't need to jump through hoops to make my operating system compatible with anything anymore, and it is fantastic!