All Guides
Node.js und npm Einrichtung
Installieren Sie die Node.js-Laufzeitumgebung und den npm-Paketmanager.
Beginner10 Min.
Setup Steps
1. Add the NodeSource repository (Node.js 20 LTS):
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -2. Install Node.js:
sudo apt install nodejs -y3. Check versions:
node --version
npm --version4. Alternative: Install with nvm (recommended):
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc
nvm install 20
nvm use 20
nvm alias default 205. Install global packages:
npm install -g yarn pnpm6. Start a new project:
mkdir project && cd project
npm init -y7. Install packages:
npm install express
npm install -D typescript @types/node8. package.json scripts:
"scripts": {
"dev": "node --watch index.js",
"start": "node index.js"
}Related Guides
Linux VPS Server Einrichtung (Ubuntu)
Konfigurieren Sie Ihren Ubuntu-basierten VPS-Server von Grund auf.
Apache Webserver Einrichtung
Installieren Sie den Apache HTTP-Server und konfigurieren Sie virtuelle Hosts.
Nginx Webserver Einrichtung
Installieren Sie den Nginx-Webserver und konfigurieren Sie ihn als Reverse Proxy.
Let's Encrypt SSL-Zertifikat
Holen Sie sich ein kostenloses SSL/TLS-Zertifikat mit Certbot.