Home > Net >  How to only run js file with the code runner extension
How to only run js file with the code runner extension

Time:02-23

I'm wanting to start to use js in vscode, so I installed the code runner extension to help me out. But I have a problem when I run a python it wanted to go through the code runner extension and not that python extension that I already have installed.

CodePudding user response:

First install node js to run code through code runner extension or you can simply run the js file by the following way:

node filename.js

example: node index.js

Remember: you need to first install node js globally and check whether it is installed perfectly or not, by checking version through node --version command in cmd.

  • Related