{"id":41966,"date":"2024-08-23T11:22:42","date_gmt":"2024-08-23T11:22:42","guid":{"rendered":"https:\/\/www.carmatec.com\/?p=41966"},"modified":"2024-08-23T11:22:42","modified_gmt":"2024-08-23T11:22:42","slug":"wie-installiert-man-node-js-und-npm-auf-windows-macos-linux","status":"publish","type":"post","link":"https:\/\/stage.carmatec.com\/de\/blog\/wie-installiert-man-node-js-und-npm-auf-windows-macos-linux\/","title":{"rendered":"Wie man Node.js und npm unter Windows, macOS und Linux installiert"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"41966\" class=\"elementor elementor-41966\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ee111f0 e-flex e-con-boxed e-con e-parent\" data-id=\"ee111f0\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5ffcd61 elementor-widget elementor-widget-text-editor\" data-id=\"5ffcd61\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2><b>Einf\u00fchrung<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Node.js ist eine leistungsstarke JavaScript-Laufzeitumgebung, mit der Sie JavaScript-Code auf der Serverseite ausf\u00fchren k\u00f6nnen. npm (Node Package Manager) ist der Standard-Paketmanager f\u00fcr Node.js und f\u00fcr die Verwaltung von JavaScript-Paketen und -Abh\u00e4ngigkeiten unerl\u00e4sslich. In dieser Anleitung f\u00fchren wir Sie durch die Schritte zur Installation von Node.js und npm unter Windows, macOS und Linux.<\/span><\/p>\n<h2><b>1. Installation von Node.js und npm unter Windows<\/b><\/h2>\n<p><b>Schritt 1: Node.js herunterladen<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Besuchen Sie die<\/span><a href=\"https:\/\/nodejs.org\/\"> <span style=\"font-weight: 400;\">Node.js offizielle Website<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Laden Sie das Windows-Installationsprogramm (.msi) f\u00fcr die LTS-Version (Long Term Support) herunter.<br><br><\/span><\/li>\n<\/ol>\n<p><b>Schritt 2: Node.js installieren<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">F\u00fchren Sie die heruntergeladene <\/span><span style=\"font-weight: 400;\">.msi<\/span><span style=\"font-weight: 400;\"> Datei.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Folgen Sie den Installationsanweisungen und vergewissern Sie sich, dass Sie das Kontrollk\u00e4stchen f\u00fcr die Aufnahme von <\/span><span style=\"font-weight: 400;\">npm<\/span><span style=\"font-weight: 400;\"> in der Anlage.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Klicken Sie auf \"Weiter\" und \"Installieren\", um die Installation abzuschlie\u00dfen.<br><br><\/span><\/li>\n<\/ol>\n<p><b>Schritt 3: \u00dcberpr\u00fcfen Sie die Installation<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u00d6ffnen Sie die Eingabeaufforderung.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Typ <\/span><span style=\"font-weight: 400;\">Knoten -v<\/span><span style=\"font-weight: 400;\"> um die Node.js-Version zu \u00fcberpr\u00fcfen.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Typ <\/span><span style=\"font-weight: 400;\">npm -v<\/span><span style=\"font-weight: 400;\"> um die npm-Version zu \u00fcberpr\u00fcfen.<br><br><\/span><\/li>\n<\/ol>\n<h2><b>2. Installation von Node.js und npm unter macOS<\/b><\/h2>\n<p><b>Schritt 1: Node.js \u00fcber Homebrew installieren<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Terminal \u00f6ffnen.<br><br><\/span><\/li>\n<\/ol>\n<ol start=\"2\">\n<li><span style=\"font-weight: 400;\"> Installieren Sie<\/span><a href=\"https:\/\/brew.sh\/\"> <span style=\"font-weight: 400;\">Selbstgebrautes<\/span><\/a><span style=\"font-weight: 400;\"> wenn Sie es nicht schon getan haben, indem Sie laufen:<\/span><\/li>\n<\/ol>\n<div>\n<pre>    \/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"<\/pre>\n<\/div>\n<p><span style=\"font-weight: 400;\">&nbsp; &nbsp; 3. installieren Sie Node.js und npm mit:<\/span><span style=\"font-weight: 400;\"><br><\/span><\/p>\n<pre><span style=\"font-weight: 400;\">      brew install node<\/span><\/pre>\n<p><\/p>\n<p><b>Schritt 2: \u00dcberpr\u00fcfen Sie die Installation<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Geben Sie in Terminal <\/span><span style=\"font-weight: 400;\">Knoten -v<\/span><span style=\"font-weight: 400;\"> um die Node.js-Version zu \u00fcberpr\u00fcfen.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Typ <\/span><span style=\"font-weight: 400;\">npm -v<\/span><span style=\"font-weight: 400;\"> um die npm-Version zu \u00fcberpr\u00fcfen.<br><br><\/span><\/li>\n<\/ol>\n<p><b>Alternative Methode: Herunterladen von der Website<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Besuchen Sie die<\/span><a href=\"https:\/\/nodejs.org\/\"> <span style=\"font-weight: 400;\">Node.js offizielle Website<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Laden Sie das macOS-Installationsprogramm herunter und f\u00fchren Sie das <\/span><span style=\"font-weight: 400;\">.pkg<\/span><span style=\"font-weight: 400;\"> Datei.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Folgen Sie den Aufforderungen, um die Installation abzuschlie\u00dfen.<\/span><\/li>\n<\/ol>\n<h2><b>3. Installation von Node.js und npm unter Linux<\/b><\/h2>\n<p><b>Schritt 1: Aktualisieren Sie Ihren Paketindex<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Terminal \u00f6ffnen.<br><br><\/span><\/li>\n<\/ol>\n<ol start=\"2\">\n<li><span style=\"font-weight: 400;\"> F\u00fchren Sie den folgenden Befehl aus, um den Paketindex zu aktualisieren:<\/span><span style=\"font-weight: 400;\"><br><\/span><span style=\"font-weight: 400;\">sudo apt update<br><br><\/span><\/li>\n<\/ol>\n<p><b>Schritt 2: Node.js und npm installieren<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>F\u00fcr Debian\/Ubuntu-basierte Distributionen<\/b><span style=\"font-weight: 400;\">:<\/span><span style=\"font-weight: 400;\"><br><\/span><span style=\"font-weight: 400;\">sudo apt install nodejs npm<br><br><\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>F\u00fcr CentOS\/RHEL-basierte Distributionen<\/b><span style=\"font-weight: 400;\">:<\/span><span style=\"font-weight: 400;\"><br><\/span><span style=\"font-weight: 400;\">sudo yum install nodejs npm<br><br><\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>F\u00fcr Fedora<\/b><span style=\"font-weight: 400;\">:<\/span><span style=\"font-weight: 400;\"><br><\/span><span style=\"font-weight: 400;\">sudo dnf install nodejs npm<br><br><\/span><\/li>\n<\/ul>\n<p><b>Schritt 3: \u00dcberpr\u00fcfen Sie die Installation<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Geben Sie in Terminal <\/span><span style=\"font-weight: 400;\">Knoten -v<\/span><span style=\"font-weight: 400;\"> um die Node.js-Version zu \u00fcberpr\u00fcfen.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Typ <\/span><span style=\"font-weight: 400;\">npm -v<\/span><span style=\"font-weight: 400;\"> um die npm-Version zu \u00fcberpr\u00fcfen.<br><br><\/span><\/li>\n<\/ol>\n<h2><b>Alternative Methode: Installation \u00fcber Node Version Manager (nvm)<\/b><\/h2>\n<ol>\n<li><span style=\"font-weight: 400;\"> Installieren Sie <\/span><span style=\"font-weight: 400;\">nvm<\/span><span style=\"font-weight: 400;\"> (Node Version Manager) durch Ausf\u00fchren:<\/span><\/li>\n<\/ol>\n<pre><span style=\"text-align: var(--text-align);\"><font face=\"monospace, monospace\">    <\/font>curl -o- https:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.39.2\/install.sh | bash<\/span><\/pre>\n<ol start=\"2\" style=\"font-size: 17px; background-color: rgb(255, 255, 255);\">\n<li><span style=\"font-weight: 400;\">Laden Sie <\/span><span style=\"font-weight: 400;\">nvm<\/span><span style=\"font-weight: 400;\">:<\/span><\/li>\n<\/ol>\n<pre>    Quelle ~\/.bashrc<\/pre>\n<ol start=\"3\">\n<li><span style=\"font-weight: 400;\">Installieren Sie Node.js mit <\/span><span style=\"font-weight: 400;\">nvm<\/span><span style=\"font-weight: 400;\">:<\/span><\/li>\n<\/ol>\n<pre>    nvm install node<\/pre>\n<ol start=\"3\">\n<li><span style=\"font-weight: 400;\"> \u00dcberpr\u00fcfen Sie durch Eingabe von <\/span><span style=\"font-weight: 400;\">Knoten -v<\/span><span style=\"font-weight: 400;\"> Und <\/span><span style=\"font-weight: 400;\">npm -v<\/span><span style=\"font-weight: 400;\">.<br><br><\/span><\/li>\n<\/ol>\n<h2><b>Abschluss<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Die Installation von Node.js und npm ist einfach, egal ob Sie mit Windows, macOS oder Linux arbeiten. Wenn Sie diese Anleitung befolgen, sind Node.js und npm im Handumdrehen einsatzbereit und k\u00f6nnen f\u00fcr Ihre Entwicklungsprojekte verwendet werden. Mit <a href=\"https:\/\/www.carmatec.com\/hire-developers\/hire-nodejs-developer\/\">Node.js<\/a> installiert, sind Sie bereit, die Welt der serverseitigen <a href=\"https:\/\/www.carmatec.com\/hire-developers\/hire-javascript-developer\/\">JavaScript<\/a> und beginnen Sie mit dem Aufbau leistungsf\u00e4higer <a href=\"https:\/\/www.carmatec.com\/web-application-development\/\">Anwendungen<\/a>.<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Introduction Node.js is a powerful JavaScript runtime environment that enables you to run JavaScript code on the server side. npm (Node Package Manager) is the default package manager for Node.js and is essential for managing JavaScript packages and dependencies. In this guide, we&#8217;ll walk you through the steps to install Node.js and npm on Windows, [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":41972,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-41966","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"_links":{"self":[{"href":"https:\/\/stage.carmatec.com\/de\/wp-json\/wp\/v2\/posts\/41966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stage.carmatec.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stage.carmatec.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stage.carmatec.com\/de\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/stage.carmatec.com\/de\/wp-json\/wp\/v2\/comments?post=41966"}],"version-history":[{"count":6,"href":"https:\/\/stage.carmatec.com\/de\/wp-json\/wp\/v2\/posts\/41966\/revisions"}],"predecessor-version":[{"id":41973,"href":"https:\/\/stage.carmatec.com\/de\/wp-json\/wp\/v2\/posts\/41966\/revisions\/41973"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stage.carmatec.com\/de\/wp-json\/wp\/v2\/media\/41972"}],"wp:attachment":[{"href":"https:\/\/stage.carmatec.com\/de\/wp-json\/wp\/v2\/media?parent=41966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stage.carmatec.com\/de\/wp-json\/wp\/v2\/categories?post=41966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stage.carmatec.com\/de\/wp-json\/wp\/v2\/tags?post=41966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}