How to Download and Install Node.js in 2024 | Mac & Windows

Поделиться
HTML-код
  • Опубликовано: 12 дек 2024

Комментарии • 15

  • @thecommoncoder
    @thecommoncoder  4 месяца назад +2

    What else would you like to learn about Node.js? Let me know! 👇

  • @ZachPerrySwift
    @ZachPerrySwift 4 месяца назад +1

    Finally an easy, simple tutorial to follow. Thankyou!

  • @itachiuchiha1734
    @itachiuchiha1734 3 месяца назад +1

    finally, simple straight forward tutorial, thanks man

  • @RoseMakesVideoGames
    @RoseMakesVideoGames 2 месяца назад

    @1:37 what does it mean when you're on a Mac and these dropdown menus are blank? I can't click any of them... I've gone into my browser settings to allow everything from this website so I really have no idea... Also my internet connection is solid

    • @RoseMakesVideoGames
      @RoseMakesVideoGames 2 месяца назад

      I am also wondering why I got a .tar.gz file instead of .pkg when I downloaded from the main page like you did

    • @thecommoncoder
      @thecommoncoder  2 месяца назад +1

      Hmm... I'm not sure why the dropdown menus would be blank. I also just tried the download from the homepage with Chrome and Safari, and both downloaded the .pkg installer as expected.
      My guess is that something might be going on with your browser. I'd try clearing your browser cache and then restarting your computer. If that doesn't work, I'd disable any extensions you have installed in your browser. I've seen extensions mess up the functionality of other websites before... so that could be what's going on here. If that still doesn't work, then I'd try the download from a completely different browser.

    • @RoseMakesVideoGames
      @RoseMakesVideoGames 2 месяца назад

      @@thecommoncoder The Node website changes to a 500 Internal Server Error with the message “This page has thrown a non-recoverable error” and there’s a button to go back to the home page, I’m really not sure what to do now but I got this page before and after I followed your advice. Anyway thank you for responding!

  • @architsingh1572
    @architsingh1572 4 месяца назад +1

    I have downloaded the node.js but it is not running javascript code .

    • @thecommoncoder
      @thecommoncoder  4 месяца назад

      Are you able to run "node -v" in the command line and see the version? If not, you might want to try re-installing and/or restarting your computer.
      If the above command works, how are you trying to run your JavaScript code? To run code in a JavaScript file, you'll need to type "node path/to/javascript/file.js" in the command line in order to run it.
      Usually, you'll want to navigate to the location of your project with the command line, and then run your project files from there.
      For example, if your project was in "~/Documents/Code/MyProject" and your JavaScript file was called "index.js", you'd want to first navigate to the project folder using "cd ~/Documents/Code/MyProject", then run "node index.js" whenever you wanted to run your code.
      Hope that helps!

    • @architsingh1572
      @architsingh1572 4 месяца назад +1

      @@thecommoncoder Thanks 😀

    • @Sa33d215
      @Sa33d215 4 месяца назад

      I can't run it I got a message saying to run the file in a shell now I try to run it and an error message came up.
      please help me

  • @JonStaples-c6q
    @JonStaples-c6q 2 месяца назад

    If you are installing Node on Mac with anything other than Homebrew, you are not trustworthy. LOL. Get real dude.

    • @thecommoncoder
      @thecommoncoder  2 месяца назад

      @@JonStaples-c6q There’s no mention of homebrew in the official Node.js docs, which I why I chose to focus on using the installer on both platforms.
      Having to explain what homebrew is, how to install it, and how to use it is well outside the scope of this video. IMO, it would only add confusion to those looking to get started.
      That’s about as real and trustworthy as it gets. Thanks for the comment! 😉