Einführung in Node.js und NPM
Lernen Sie, was Node.js ist, welche Vorteile es für die Backend-Entwicklung bietet und wie Sie den Node Package Manager (NPM) verwenden.
Einführung in Node.js und NPM ist eine kostenlose Node.js Backend Development Bootcamp-Lektion auf CoddyKit. Dies ist Lektion 1 von 4. Du kannst die komplette Lektion unten kostenlos lesen – dann übst du sie direkt im Browser mit einem integrierten Code-Editor und einem KI-Tutor rund um die Uhr. Sie ist Teil des Node.js Backend Development Bootcamp-Lernpfads, und dein Fortschritt wird über Web und CoddyKit-App synchronisiert. Der Node.js Backend Development Bootcamp-Kurs umfasst insgesamt 4 Lektionen.
Teile dieser Lektion wurden noch nicht übersetzt und werden auf Englisch angezeigt.
Welcome to Node.js!
Node.js is a server-side JavaScript runtime — an engine that runs your JS outside the browser, right on a server or your own machine.
Why Node.js is Awesome
Why developers love Node.js: one language front to back, blazing V8 speed, non-blocking I/O for high concurrency, and the massive NPM ecosystem.
How Node.js Works
Node uses an event-driven, non-blocking model: it kicks off a task, registers a callback, and moves on — handling tons of connections without waiting around.
Checking Your Node.js Setup
Check your setup with node -v. See a version number? You're good. If not, grab it from nodejs.org.
Your First Node.js Script
Let's write a classic Hello, World. Drop a console.log into a file named app.js — that's a full Node script.
// app.js
console.log("Hello from CoddyKit Node.js!");Running Your Node.js Code
Run it with node app.js from its folder. Node executes the script and prints your message to the terminal.
Meet NPM (Node Package Manager)
NPM (Node Package Manager) ships with Node and is the world's largest software registry. It installs third-party packages, shares your code, and tracks dependencies.
Starting a New Project with NPM
Start a project with npm init. It walks you through creating package.json — the file holding your project's metadata and dependency list.
Installing Packages with NPM
Add a library with npm install express. NPM downloads it into node_modules and records it in your package.json.
Quick Check on Node.js & NPM
Let's test your understanding of Node.js and NPM.
Recap: Node.js & NPM Fundamentals
You've got the basics: Node.js runs JS on the server, and NPM manages packages via node, npm init, and npm install. Next: modules.
Häufig gestellte Fragen
Ist die Lektion „Einführung in Node.js und NPM“ kostenlos?
Ja — der vollständige Text von „Einführung in Node.js und NPM“ ist hier im Web kostenlos zu lesen. Um sie interaktiv zu üben (integrierter Code-Editor und 24/7 KI-Tutor) und den Rest des Node.js Backend Development Bootcamp-Kurses freizuschalten, upgrade auf CoddyKit PRO. Der Node.js Backend Development Bootcamp-Kurs umfasst insgesamt 4 Lektionen.
Was lerne ich in „Einführung in Node.js und NPM“?
Lernen Sie, was Node.js ist, welche Vorteile es für die Backend-Entwicklung bietet und wie Sie den Node Package Manager (NPM) verwenden. Du übst Node.js Backend Development Bootcamp mit praktischem Code, den du direkt im Browser ausführst, und ein 24/7 KI-Tutor beantwortet deine Fragen während du die Lektion bearbeitest.
Brauche ich Erfahrung, um Node.js Backend Development Bootcamp zu starten?
Keine Vorkenntnisse erforderlich. Node.js Backend Development Bootcamp auf CoddyKit ist für Anfänger bis fortgeschrittene Lernende strukturiert, sodass du hier starten oder von Anfang an beginnen und in deinem eigenen Tempo voranschreiten kannst. Dies ist Lektion 1 von 4.
Wie lange dauert die Lektion „Einführung in Node.js und NPM“?
Die meisten CoddyKit-Lektionen dauern etwa 5–10 Minuten. Jede ist kompakt und interaktiv, sodass du stetig Fortschritte machst und genau dort weitermachst, wo du aufgehört hast – im Web und in der App.
Kann ich in dieser Node.js Backend Development Bootcamp-Lektion Code schreiben und ausführen?
Ja. Jede Node.js Backend Development Bootcamp-Lektion enthält einen integrierten Code-Editor, sodass du echten Code direkt in deinem Browser schreibst und ausführst und sofort KI-Feedback erhältst — ohne lokale Einrichtung erforderlich.
Alle Lektionen in diesem Kurs
- Einführung in Node.js und NPM
- Das Node.js-Modulsystem erklärt
- Asynchrones JavaScript und Event Loop
- Arbeiten mit Dateisystem und Streams