• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

using node.js on vscode

Q&A Forum › Category: ESP8266 › using node.js on vscode
0 Vote Up Vote Down
charles asked 2 years ago

using dir/s I find node.js installed deep into the vscode directory structure after a scratch install of vscode.  But when I try to test for it with node –version I get an error that that node.js nowhere to be found. I suspect there is a pathing problem. After searching around it seems this is a chronic problem with node.js since 2018 with various cures depending on vscode version.. Can you shed light on how to fix access to node.js? 
I am used to adding path destinations separated by semicolons but not sure that the environment variables work the same way as in previous versions like windows 7
 
I am running windows 10 22H2 with latest versions of vscode and platform io

Question Tags: node.js install to vscode
2 Answers
0 Vote Up Vote Down
charles answered 2 years ago

I solved the problem by installing Node.js as directed in:
Setting up additional components to use with Visual Studio Code
by downloading and executing the .msi file for the standalone package from nodejs.org
now my test program runs in a vscode workspace, and the following code runs in a terminal in vscode or platformio
 C:\Users\cfyte>node –version
v18.13.0
And it only took 6 hours of searching to find the answer.  
 

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Thanks for sharing the answer with us.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.