skip to Main Content
[Running] node "c:UserskwabeDocumentsPersonal LearningCodingPracticeagain.js"
'node' is not recognized as an internal or external command,
operable program or batch file.

[Done] exited with code=1 in 0.247 seconds

I’m following along in the VS Code tutorial video and I’m at the point where he codes in JS, I tried doing the same, but have been getting this error. I ran the code fine yesterday, but I’m having some challenges and could use some support

2

Answers


  1. Check Node.js Installation:

    Open a command prompt or terminal and type node -v to check if Node.js is installed and recognized. If it’s installed correctly, it should return the version number.
    Add Node.js to PATH:

    If the above command isn’t recognized, you may need to add Node.js to your system’s PATH manually.

    Right-click on "This PC" or "Computer" and select "Properties."
    Click on "Advanced system settings" and then "Environment Variables."
    In the "System variables" section, find the Path variable and select it, then click "Edit."
    Click "New" and add the path to your Node.js installation (e.g., C:Program Filesnodejs).
    Click "OK" to save the changes.

    Login or Signup to reply.
  2. I’m assuming you skipped the installation of Node (U gotta run an installer for this)

    If u don’t have NodeJS installed, get it here

    If you do, and it isn’t working… Verify you’re up to date, and not missing any files.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search