Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,154,623 members, 7,823,746 topics. Date: Friday, 10 May 2024 at 02:21 PM

How Can I Run Javascript Code On Vs Code - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / How Can I Run Javascript Code On Vs Code (529 Views)

Wrote My First JS Code On VS Code.... Lol (pics) / Need Someone To Help With My Javascript Code / How Can I Set Up Or Run My Python IDE On VS Code On Windows 8 (2) (3) (4)

(1) (Reply) (Go Down)

How Can I Run Javascript Code On Vs Code by Winningbot: 1:13pm On Jun 16, 2022
Please can someone assist me on how to run JavaScript code on vs code. I have installed nodejs but yet if I try to run a code, I keep getting error.

Please kindly assist me

Re: How Can I Run Javascript Code On Vs Code by Winningbot: 1:14pm On Jun 16, 2022
Pls pro's come and help me. This is the error I Keep getting

Re: How Can I Run Javascript Code On Vs Code by jesmond3945: 4:12pm On Jun 16, 2022
Have you added vs code bin path to your enviroment varaible on windows
Re: How Can I Run Javascript Code On Vs Code by Nobody: 5:43pm On Jun 16, 2022
Winningbot:
Please can someone assist me on how to run JavaScript code on vs code. I have installed nodejs but yet if I try to run a code, I keep getting error.

Please kindly assist me
Google it, I'm sure you'll have to download a node JS extension from Vs code just like python
Re: How Can I Run Javascript Code On Vs Code by Winningbot: 5:50pm On Jun 16, 2022
jesmond3945:
Have you added vs code bin path to your enviroment varaible on windows
I don't understand sir. Can you explain please
Re: How Can I Run Javascript Code On Vs Code by jbreezy: 6:20pm On Jun 16, 2022
Winningbot:
I don't understand sir. Can you explain please
just google "download node js for windows"
Re: How Can I Run Javascript Code On Vs Code by Winningbot: 7:39pm On Jun 16, 2022
jbreezy:
just google "download node js for windows"
I have already downloaded it. Do I have to integrate it to my vs code?
Re: How Can I Run Javascript Code On Vs Code by Tunechi5(m): 7:56pm On Jun 16, 2022
Use npm or chrome dev tool

https://stackoverflow.com/questions/31778413/run-javascript-in-visual-studio-code#:~:text=Open%20the%20JavaScript%20code%20file,shown%20in%20the%20Output%20Window.
Re: How Can I Run Javascript Code On Vs Code by Nobody: 8:48pm On Jun 16, 2022
Try nodemon with NPX

NPX is higher version of NPM


first on your Colman line


"npm install nodemon --global --save "


Then


then on the path you're currently on try this on the file want to open


Assuming your file name is file.js


On your command line try


npx nodemom app.js


With nodemon you left code runs whenever you click the save button


Whereas without it you need to manually run the code each time you save

(1) (Reply)

Is This Stack In Demand? / Ibm Cyber Security / What Most Programmers Won't Tell You About Solving Problems At Interviews

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 11
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.