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 Node.js Basics Introduction to Node.js Hello World

Gal Parselany
.a{fill-rule:evenodd;}techdegree seal-36
Gal Parselany
Full Stack JavaScript Techdegree Graduate 26,281 Points

Windows users solution to open the vs code from the prompt :

  1. Open the start menu and search for "Environment Variables" and click on "Edit the system environment variables".
  2. In the "System Properties" window that appears, click on the "Environment Variables" button at the bottom.
  3. In the "Environment Variables" window, scroll down to the "System variables" section and find the "Path" variable. Click on the "Edit" button.
  4. In the "Edit environment variable" window, click on the "New" button and enter the path to the Visual Studio Code installation directory. This is typically C:\Program Files\Microsoft VS Code or C:\Program Files (x86)\Microsoft VS Code on Windows.
  5. Click on "OK" to close all the windows and save the changes.
  6. Open a new terminal or command prompt and try running the code command again.

1 Answer