# Visual Studio Code and Node js

**URL:** <https://forum.codewithmosh.com/t/visual-studio-code-and-node-js/13636>\
**Category:** Uncategorized\
**Created:** [July 12, 2022, 5:51pm UTC](https://forum.codewithmosh.com/t/visual-studio-code-and-node-js/13636 "2022-07-12T17:51:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PierreFaucher](https://avatars.discourse-cdn.com/v4/letter/p/dbc845/32.png) [@PierreFaucher](https://forum.codewithmosh.com/u/PierreFaucher)\
**Post date:** [July 12, 2022, 5:51pm UTC](https://forum.codewithmosh.com/t/visual-studio-code-and-node-js/13636/1 "2022-07-12T17:51:28Z")

</div>

I have installed VS code on my machine to run JavaScript. Do I also need to installed Node js?  
And if so, how do I go about installing Node js?

---

<div class="post-metadata">

**Author:** ![UniqueNospaceShort](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/uniquenospaceshort/32/1814_2.png) [@UniqueNospaceShort](https://forum.codewithmosh.com/u/UniqueNospaceShort)\
**Post date:** [July 13, 2022, 9:52am UTC](https://forum.codewithmosh.com/t/visual-studio-code-and-node-js/13636/2 "2022-07-13T09:52:06Z")

</div>

Hi.  
What environment ?  
Did you try looking up “node js”?

JS is available to use on every browser. So simply write a JS file. Create a basic HTML page in which you embed your script and you’re good to go.

Node JS is like a server-side JavaScript runner.  
Depends what you want to do. For basic JS it is unlikely ou need it.  
You can also use online services such as JS Fiddle.

Regards.

---

<div class="post-metadata">

**Author:** ![PierreFaucher](https://avatars.discourse-cdn.com/v4/letter/p/dbc845/32.png) [@PierreFaucher](https://forum.codewithmosh.com/u/PierreFaucher)\
**Post date:** [July 13, 2022, 4:20pm UTC](https://forum.codewithmosh.com/t/visual-studio-code-and-node-js/13636/3 "2022-07-13T16:20:23Z")

</div>

My environment is macOs Monterey. I type node js in the terminal of visual studio code and I got error message that said Cannot find module.

---

<div class="post-metadata">

**Author:** ![UniqueNospaceShort](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/uniquenospaceshort/32/1814_2.png) [@UniqueNospaceShort](https://forum.codewithmosh.com/u/UniqueNospaceShort)\
**Post date:** [July 13, 2022, 5:40pm UTC](https://forum.codewithmosh.com/t/visual-studio-code-and-node-js/13636/4 "2022-07-13T17:40:33Z")

</div>

I’m not a Mac user and I don’t know in what state your machine is. I will assume you simply did not [install node](https://nodejs.org/en/download/package-manager/#macos).
