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 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
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
James Crosslin
Full Stack JavaScript Techdegree Graduate 16,882 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!