• Friday , 29 May 2020

JavaScript Tutorial: Run JavaScript in Sublime Text with a NodeJS Build System

Code Canyon



In this JavaScript Tutorial, we will be learning how to create a JavaScript build system within Sublime Text. This will allow us to run JavaScript code outside of a browser environment and write messages to the Sublime Text console. Let’s get started.

✅ Support My Channel Through Patreon:
https://www.patreon.com/coreyms

✅ Become a Channel Member:
https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join

✅ One-Time Contribution Through PayPal:
https://goo.gl/649HFY

✅ Cryptocurrency Donations:
Bitcoin Wallet – 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet – 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet – MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey’s Public Amazon Wishlist
http://a.co/inIyro1

✅ Equipment I Use and Books I Recommend:
https://www.amazon.com/shop/coreyschafer

▶️ You Can Find Me On:
My Website – http://coreyms.com/
My Second Channel – https://www.youtube.com/c/coreymschafer
Facebook – https://www.facebook.com/CoreyMSchafer
Twitter – https://twitter.com/CoreyMSchafer
Instagram – https://www.instagram.com/coreymschafer/

Original source

3d Ocean

Related Posts

20 Comments

  1. Vivek Kumar
    April 14, 2019 at 04:50

    thanks for making our life easier !!

  2. Shubham Dhingra
    April 14, 2019 at 04:50

    {
    "cmd": ["node","$file"],
    "selector": "source.js"
    }

  3. Jim Mower
    April 14, 2019 at 04:50

    Very clear explanation–thanks!

  4. tilekbek kadyrov
    April 14, 2019 at 04:50

    you are the beast man!!!
    Thank a lot!!

  5. francisco prin
    April 14, 2019 at 04:50

    Thanks a lot, Corey,
    I used this configuration instead as a Windows' user.
    {

    "cmd": ["C:\Program Files\nodejs\node.exe","$file"],

    "selector":"source.js"

    }

  6. Ivan M
    April 14, 2019 at 04:50

    well I stuck on second step "node test.js".
    internal/modules/cjs/loader.js:583

    throw err;

    ^

    Error: Cannot find module 'C:Usersusernametest.js'

  7. oᄋ
    April 14, 2019 at 04:50

    thx for the tutorial. I forgot restarting sublime and kept wondering why it throws Error.. errrr

  8. PirateSteve
    April 14, 2019 at 04:50

    I get an error saying node is not defined

  9. Sonaal Chandra
    April 14, 2019 at 04:50

    was helpful

  10. Mateus Jonathan
    April 14, 2019 at 04:50

    Thanks for the tip.

    I'm Linux Ubuntu and this tip worked.

    But the command is CTRL + B.

  11. Tajinder Singh
    April 14, 2019 at 04:50

    thanks buddy!!!!

  12. Giovane Robino
    April 14, 2019 at 04:50

    works perfectly thank you so much! <3

  13. Aditya
    April 14, 2019 at 04:50

    can you tell me what are the prerequisites to learn javascript please. .

  14. Tim Bauer
    April 14, 2019 at 04:50

    Perfect!!! Awesome video 🙂

  15. K Yancy
    April 14, 2019 at 04:50

    Thanks for the post!

  16. Taha Farrukh
    April 14, 2019 at 04:50

    can you tell me that how did you configured your terminal.
    i loved it

  17. Hurston Prescott
    April 14, 2019 at 04:50

    Excellent tutorial, exactly what I needed. And being brief was a big plus.

  18. md ashraf Uddin
    April 14, 2019 at 04:50

    These are steps for a Windows 10 Home:
    1. Download sublime text https://www.sublimetext.com/3 (it usually shows which one you need by black dot)
    2. Download node.js at https://nodejs.org/en/ (Recommended for most users)
    3. go to Tools > Build System > New Build System
    4. save as Javascript in the “User” directory inside Sublime Text settings folder

    {
    "cmd": ["C:/Program Files/nodejs/node.exe", "$file"],
    "selector": "source.js"
    }5.to check it, follow the last paragraph of this article from
    Time for fun part. Create and save…..
    GOOD LUCK!

  19. Mauricio "Maujor" Samy Silva
    April 14, 2019 at 04:50

    Windows users must use:

    {
    "shell_cmd": "node ${file}",
    "selector" : "source.js"
    }

  20. Golamrabbi Azad
    April 14, 2019 at 04:50

    save my day. thanks

Leave A Comment

You must be logged in to post a comment.