You decide which services we may enable for analytics, personalization, and external content.
We use cookies and similar technologies on our website to personalize content, embed external media, and better understand how individual areas are used.
Necessary cookies
These entries support essential functions such as security, stability, and form processing.
Optional sections
AnalyticsMarketingPersonalizationExternal media
Your data may be processed with your consent or on the basis of legitimate interests. In the cookie settings, you can reject or explicitly allow each optional category.
Some services process personal data in third countries. By consenting, you also agree to this transfer. You can find more information in our Privacy Policy.
You can reopen and change your selection at any time. · 1.0.2
Setting Up JavaScript Runtime on a Windows Server – Running Modern Web Applications
Discover how to install and configure Node.js, Deno, and Bun on Windows to run JavaScript efficiently → Learn more now
10 November 20264 min read0 Views0 helpful
Introduction
This guide shows you how to install Node.js, Deno, and Bun on Windows. The steps described below must be performed via RDP. If you don’t know how to connect to your server via RDP, please check our First Access (RDP) guide.
FAQ
Frequently asked questions
This guide covers installing Node.js, Deno, and Bun. ZAP-Hosting recommends Node.js as it is one of the most widely used and popular options.
Download Node.js (LTS version recommended) from nodejs.org, run the installer, accept the license agreement, and follow the installation steps.
Yes, the described steps must be executed via RDP (Remote Desktop Protocol) on your Windows Server.
Feedback
Was this article helpful?
Your feedback helps us prioritize and improve content.
0 of 0 Users found this article helpful.
Personal support
Need more help than the guide provides?
Our ZAP support team knows your product — briefly describe your issue and we'll help you personally.
Navigation
Software
Installation
First, you need to decide which JavaScript runtime you want to install. There are many online resources that describe each one in detail. But you can also read this guide, as it contains basic commands and code examples. We recommend Node.js, as it is one of the most widely used and popular options.
Installing the Node.js Runtime
Step 1: Download Files
Open your favorite browser (I’m using Chrome for this guide) and go to https://nodejs.org/en
Click the Download Node.js (LTS) button and wait for the download to complete.
Tip
It is generally recommended to install the latest Long Term Support (LTS) version.
Step 2: Install Node.js
Start the installer by clicking it. You will be prompted to configure some installation settings. On the Welcome page, click Next.
Now you need to read and accept the Node.js license agreement (check the box), then click Next.
Next, you will be asked to choose an installation location for Node.js.
Info
We recommend using the default installation path.
On the next page, you can choose whether to exclude some core Node.js packages from installation. For a normal installation, which is recommended, just click Next. You also have the option to install Chocolatey, but this is not necessary.
Step 3: Complete Installation
Now click Install and wait for everything to be set up. Be patient, this may take a while. :)
After completion, simply click Finish and you can start using Node.js on your server.
Updating Node.js to the Latest Version
You can check the installed Node.js version with node -v. From time to time, you should verify if you are using the latest LTS version. To update Node.js, just follow the relevant section of this JavaScript Installation guide again.
Using Node.js & npm
npm is the official package manager for Node.js. It allows you to install packages from the internet.
Whenever you want to start a new Node.js project, create a new folder, open Command Prompt or PowerShell inside it, and run the command npm init to start the setup. You will be asked for some basic info to create a package.json file. This file is the "config" for Node.js.
Tip
On Windows, you can click the current path once in File Explorer, type cmd, and press Enter to open the command prompt directly in the current directory – super handy.
After initialization, create a new file named index.js and write code inside. As an example, we create a simple HTTP server on the standard port 80 that returns a test message when accessed via localhost. The code looks like this:
Now you can run the code with node . and view the result in the browser at localhost:80.
Tip
Install external npm packages with npm install [package-name].
Installing the Deno Runtime
You can easily install Deno by running the command irm https://deno.land/install.ps1 | iex in PowerShell. Search for PowerShell in Windows, open it as administrator, and execute the command. Follow the instructions shown.
Tip
Check the installed version with deno --version.
Updating Deno to the Latest Version
Update Deno simply by running deno upgrade.
Running Deno
To start Deno, create a new file index.ts and write some code inside. As an example, we build a simple HTTP server on port 80 that returns a test message when accessed via localhost:
Run the code with deno run --allow-net index.ts and open localhost:80 in your browser to see the result.
Info
Deno is designed with a focus on security and therefore requires specific permissions like --allow-net to access certain modules.
Installing the Bun Runtime
Bun also offers a very simple one-command installation but can also be installed via npm if you already use Node.js.
Run irm bun.sh/install.ps1|iex in PowerShell to install Bun on your server.
Info
If some required files are missing on the server, Bun will notify you and provide download links.
If you already have npm installed, you can also run npm install -g bun to install Bun.
Running Bun
Bun is designed to be faster than other JavaScript engines and has a similar structure to Node.js. Open an empty directory and run bun init in the command prompt.
Info
Depending on the chosen language (JS or TS), Bun creates a configuration file (jsconfig.json or tsconfig.json).
To start Bun, create a new file index.ts and write code inside. As an example, we build a simple HTTP server on port 80 that returns a test message when accessed via localhost:
js
const server = Bun.serve({
port: 80,
fetch(req) {
returnnewResponse('Hello from ZAP-Hosting Docs =)')
},
})
Run the code with bun index.ts and open localhost:80 in your browser to see the result.
Conclusion
Congratulations, you have successfully installed JavaScript! If you have any further questions or need help, our support team is available daily – just reach out! 🙂
Server hosting from €2.49 / month, online instantly, DDoS protection included.