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 Express Basics (2015) Developing Express Apps Like a Boss Easily Debug Express (and other node apps)

Thomas Hoggard
Thomas Hoggard
2,931 Points

node-inspector "python not found" issue on Windows

This is more of a solution for a problem I encountered during the class. When you run the command npm install -g node-inspector it returns a python not found error. On Windows ensure that you install Python 2.* (not 3). You will also need to add a new system environment variable, "PYTHON=C:\Python27\python.exe". Restart your shell and presto, should work!

2 Answers

Thomas Hoggard
Thomas Hoggard
2,931 Points

One other issue I encountered was that the CL.EXE command couldn't be located. I resolved this by install Visual Studios Community Edition, make sure you select C++ within the custom settings.

Once Visual Studio is installed run the Visual Studio Command Prompt and execute the npm install -g node-inspector command. It should then work without issue.

__ROLLER__ Angel
__ROLLER__ Angel
25,606 Points

Great tip for those who are also running in that environment. I've just install the new Chromixium OS it's soooo fast and awesome! I love it! npm installed quite easily as well.