{"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":"hoe-node-js-en-npm-installeren-op-windows-macos-linux","status":"publish","type":"post","link":"https:\/\/stage.carmatec.com\/nl\/blog\/hoe-node-js-en-npm-installeren-op-windows-macos-linux\/","title":{"rendered":"Node.js en npm installeren op Windows, macOS en Linux"},"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>Inleiding<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Node.js is een krachtige JavaScript runtime-omgeving waarmee je JavaScript-code aan de serverkant kunt uitvoeren. npm (Node Package Manager) is de standaardpakketbeheerder voor Node.js en is essentieel voor het beheren van JavaScript-pakketten en afhankelijkheden. In deze handleiding doorlopen we de stappen om Node.js en npm te installeren op Windows, macOS en Linux.<\/span><\/p>\n<h2><b>1. Node.js en npm installeren op Windows<\/b><\/h2>\n<p><b>Stap 1: Node.js downloaden<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Bezoek de<\/span><a href=\"https:\/\/nodejs.org\/\"> <span style=\"font-weight: 400;\">Offici\u00eble website van Node.js<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Download het Windows-installatieprogramma (.msi) voor de LTS-versie (Long Term Support).<br><br><\/span><\/li>\n<\/ol>\n<p><b>Stap 2: Node.js installeren<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Voer de gedownloade <\/span><span style=\"font-weight: 400;\">.msi<\/span><span style=\"font-weight: 400;\"> bestand.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Volg de installatieaanwijzingen en zorg ervoor dat u het vakje voor het opnemen van <\/span><span style=\"font-weight: 400;\">npm<\/span><span style=\"font-weight: 400;\"> in de installatie.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Klik op \"Volgende\" en \"Installeren\" om de installatie te voltooien.<br><br><\/span><\/li>\n<\/ol>\n<p><b>Stap 3: Controleer de installatie<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Open Opdrachtprompt.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Type <\/span><span style=\"font-weight: 400;\">knooppunt -v<\/span><span style=\"font-weight: 400;\"> om de Node.js-versie te controleren.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Type <\/span><span style=\"font-weight: 400;\">npm -v<\/span><span style=\"font-weight: 400;\"> om de npm-versie te controleren.<br><br><\/span><\/li>\n<\/ol>\n<h2><b>2. Node.js en npm installeren op macOS<\/b><\/h2>\n<p><b>Stap 1: Node.js installeren via Homebrew<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Terminal openen.<br><br><\/span><\/li>\n<\/ol>\n<ol start=\"2\">\n<li><span style=\"font-weight: 400;\"> Installeer<\/span><a href=\"https:\/\/brew.sh\/\"> <span style=\"font-weight: 400;\">Zelfbouw<\/span><\/a><span style=\"font-weight: 400;\"> als je dat nog niet hebt gedaan:<\/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.Installeer Node.js en npm met:<\/span><span style=\"font-weight: 400;\"><br><\/span><\/p>\n<pre><span style=\"font-weight: 400;\">      brew installeren node<\/span><\/pre>\n<p><\/p>\n<p><b>Stap 2: Controleer de installatie<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Typ in Terminal <\/span><span style=\"font-weight: 400;\">knooppunt -v<\/span><span style=\"font-weight: 400;\"> om de Node.js-versie te controleren.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Type <\/span><span style=\"font-weight: 400;\">npm -v<\/span><span style=\"font-weight: 400;\"> om de npm-versie te controleren.<br><br><\/span><\/li>\n<\/ol>\n<p><b>Alternatieve methode: Downloaden van de website<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Bezoek de<\/span><a href=\"https:\/\/nodejs.org\/\"> <span style=\"font-weight: 400;\">Offici\u00eble website van Node.js<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Download het macOS-installatieprogramma en voer het <\/span><span style=\"font-weight: 400;\">.pkg<\/span><span style=\"font-weight: 400;\"> bestand.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Volg de aanwijzingen om de installatie te voltooien.<\/span><\/li>\n<\/ol>\n<h2><b>3. Node.js en npm installeren op Linux<\/b><\/h2>\n<p><b>Stap 1: Werk uw pakketindex bij<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Terminal openen.<br><br><\/span><\/li>\n<\/ol>\n<ol start=\"2\">\n<li><span style=\"font-weight: 400;\"> Voer de volgende opdracht uit om de pakketindex bij te werken:<\/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>Stap 2: Node.js en npm installeren<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Voor Debian\/Ubuntu-gebaseerde distributies<\/b><span style=\"font-weight: 400;\">:<\/span><span style=\"font-weight: 400;\"><br><\/span><span style=\"font-weight: 400;\">sudo apt installeer nodejs npm<br><br><\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Voor CentOS\/RHEL-gebaseerde distributies<\/b><span style=\"font-weight: 400;\">:<\/span><span style=\"font-weight: 400;\"><br><\/span><span style=\"font-weight: 400;\">sudo yum installeer nodejs npm<br><br><\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Voor Fedora<\/b><span style=\"font-weight: 400;\">:<\/span><span style=\"font-weight: 400;\"><br><\/span><span style=\"font-weight: 400;\">sudo dnf installeer nodejs npm<br><br><\/span><\/li>\n<\/ul>\n<p><b>Stap 3: Controleer de installatie<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Typ in Terminal <\/span><span style=\"font-weight: 400;\">knooppunt -v<\/span><span style=\"font-weight: 400;\"> om de Node.js-versie te controleren.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Type <\/span><span style=\"font-weight: 400;\">npm -v<\/span><span style=\"font-weight: 400;\"> om de npm-versie te controleren.<br><br><\/span><\/li>\n<\/ol>\n<h2><b>Alternatieve methode: Installeren via Node Version Manager (nvm)<\/b><\/h2>\n<ol>\n<li><span style=\"font-weight: 400;\"> Installeer <\/span><span style=\"font-weight: 400;\">nvm<\/span><span style=\"font-weight: 400;\"> (Node Version Manager) door uit te voeren:<\/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;\">Belasting <\/span><span style=\"font-weight: 400;\">nvm<\/span><span style=\"font-weight: 400;\">:<\/span><\/li>\n<\/ol>\n<pre>    bron ~\/.bashrc<\/pre>\n<ol start=\"3\">\n<li><span style=\"font-weight: 400;\">Installeer Node.js met <\/span><span style=\"font-weight: 400;\">nvm<\/span><span style=\"font-weight: 400;\">:<\/span><\/li>\n<\/ol>\n<pre>    nvm node installeren<\/pre>\n<ol start=\"3\">\n<li><span style=\"font-weight: 400;\"> Controleer dit door te typen <\/span><span style=\"font-weight: 400;\">knooppunt -v<\/span><span style=\"font-weight: 400;\"> en <\/span><span style=\"font-weight: 400;\">npm -v<\/span><span style=\"font-weight: 400;\">.<br><br><\/span><\/li>\n<\/ol>\n<h2><b>Conclusie<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Node.js en npm installeren is eenvoudig, of je nu Windows, macOS of Linux gebruikt. Als je deze gids volgt, heb je Node.js en npm in een mum van tijd ge\u00efnstalleerd, klaar voor je ontwikkelingsprojecten. Met <a href=\"https:\/\/www.carmatec.com\/hire-developers\/hire-nodejs-developer\/\">Node.js<\/a> ge\u00efnstalleerd, ben je helemaal klaar om de wereld van server-side <a href=\"https:\/\/www.carmatec.com\/hire-developers\/hire-javascript-developer\/\">JavaScript<\/a> en begin met het bouwen van krachtige <a href=\"https:\/\/www.carmatec.com\/web-application-development\/\">toepassingen<\/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\/nl\/wp-json\/wp\/v2\/posts\/41966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stage.carmatec.com\/nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stage.carmatec.com\/nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stage.carmatec.com\/nl\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/stage.carmatec.com\/nl\/wp-json\/wp\/v2\/comments?post=41966"}],"version-history":[{"count":6,"href":"https:\/\/stage.carmatec.com\/nl\/wp-json\/wp\/v2\/posts\/41966\/revisions"}],"predecessor-version":[{"id":41973,"href":"https:\/\/stage.carmatec.com\/nl\/wp-json\/wp\/v2\/posts\/41966\/revisions\/41973"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stage.carmatec.com\/nl\/wp-json\/wp\/v2\/media\/41972"}],"wp:attachment":[{"href":"https:\/\/stage.carmatec.com\/nl\/wp-json\/wp\/v2\/media?parent=41966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stage.carmatec.com\/nl\/wp-json\/wp\/v2\/categories?post=41966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stage.carmatec.com\/nl\/wp-json\/wp\/v2\/tags?post=41966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}