How to Run Node js npm & yarn Scripts & Tasks Using Run Button in VSCode IDE
3 views
Jul 12, 2025
Get the full source code of application here:
View Video Transcript
0:00
Uh hello guys, welcome to this uh video.
0:02
So in this video, I'll show you a VS
0:04
code extension uh which provides you
0:07
with this uh GUI kind of an interface
0:09
where you can run and automate all the
0:12
npm scripts that you have declared or
0:14
tasks
0:16
inside your projects. So this is the
0:18
extension task runner. If you go to the
0:21
extensions tab, just write this name.
0:25
It's fairly new extension. Uh
0:29
so it's got almost 14,000 installed. So
0:32
click on the install button to activate
0:34
this. So once you activate this you will
0:37
see this option appearing at the sidebar
0:39
section. If you see
0:44
so task runner so if you see that
0:47
activate this so now it will show you
0:49
all the extensions all the npm scripts
0:53
that you already have inside your
0:55
package.json JSON file. So
0:59
we have these two scripts here which is
1:02
the start script, the test script.
1:05
So if you go to this,
1:11
you also have the npm install script
1:13
which installed all the npm modules. So
1:17
you can click this install script to
1:19
install all the NodeJS modules and then
1:23
you can run this
1:28
project by clicking this run task
1:30
button. So it will start your
1:33
application very easily. So it makes it
1:36
very much easy. It actually add this
1:38
option right in the sidebar section. So
1:40
at any time in the program if you want
1:43
to run this you go to this location
1:45
simply it adds these run button you
1:48
click the run button it will start this
1:51
script automatically so don't need to
1:54
manually go to the command line run your
1:56
project so it will save you a lot of
1:58
time so simply install this extension
2:01
activate this and start using it and
2:04
also check out my website
2:06
freemediatools.com
2:08
uh which contains thousands of tools.