{"id":41966,"date":"2024-08-23T11:22:42","date_gmt":"2024-08-23T11:22:42","guid":{"rendered":"https:\/\/www.carmatec.com\/?p=41966"},"modified":"2026-02-17T10:33:30","modified_gmt":"2026-02-17T10:33:30","slug":"comment-installer-node-js-et-npm-sur-windows-macos-linux","status":"publish","type":"post","link":"https:\/\/www.carmatec.com\/fr_fr\/blog\/how-to-install-node-js-and-npm-on-windows-macos-linux\/","title":{"rendered":"Comment installer Node.js et npm sur Windows, macOS et Linux (Guide 2025)"},"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\t\t\t\t\t<h2><b>Introduction<\/b><\/h2><p>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\u2019ll walk you through the steps to install Node.js and npm on Windows, macOS, and Linux.<\/p><h2><b>1. Installation de Node.js et de npm sous Windows<\/b><\/h2><p><b>\u00c9tape 1 : T\u00e9l\u00e9charger Node.js<\/b><\/p><ol><li aria-level=\"1\">Visitez le site<a href=\"https:\/\/web.archive.org\/web\/20250817095856\/https:\/\/nodejs.org\/\">\u00a0Site officiel de Node.js<\/a>.<\/li><li aria-level=\"1\">T\u00e9l\u00e9chargez le programme d'installation Windows (.msi) pour la version LTS (Long Term Support).<\/li><\/ol><p><b>\u00c9tape 2 : Installer Node.js<\/b><\/p><ol><li aria-level=\"1\">Run the downloaded\u00a0.msi\u00a0file.<\/li><li aria-level=\"1\">Follow the installation prompts, ensuring that you check the box to include\u00a0npm\u00a0in the installation.<\/li><li aria-level=\"1\">Click \u201cNext\u201d and \u201cInstall\u201d to complete the setup.<\/li><\/ol><p><b>\u00c9tape 3 : V\u00e9rifier l'installation<\/b><\/p><ol><li aria-level=\"1\">Ouvrez l'invite de commande.<\/li><li aria-level=\"1\">Type\u00a0node -v\u00a0to check the Node.js version.<\/li><li aria-level=\"1\">Type\u00a0npm -v\u00a0to check the npm version.<\/li><\/ol><h2><b>2. Installation de Node.js et de npm sur macOS<\/b><\/h2><p><b>\u00c9tape 1 : Installer Node.js via Homebrew<\/b><\/p><ol><li aria-level=\"1\">Terminal ouvert.<\/li><li aria-level=\"1\">Installer<a href=\"https:\/\/web.archive.org\/web\/20250817095856\/https:\/\/brew.sh\/\">\u00a0Homebrew<\/a>\u00a0if you haven\u2019t already by running:<br \/><pre>\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"<\/pre><\/li><li aria-level=\"1\">Install Node.js and npm with:<br \/><pre>brew install node<\/pre><\/li><\/ol><p><b>\u00c9tape 2 : V\u00e9rifier l'installation<\/b><\/p><ol><li aria-level=\"1\">In Terminal, type\u00a0node -v\u00a0to check the Node.js version.<\/li><li aria-level=\"1\">Type\u00a0npm -v\u00a0to check the npm version.<\/li><\/ol><p><b>M\u00e9thode alternative : T\u00e9l\u00e9charger \u00e0 partir du site web<\/b><\/p><ol><li aria-level=\"1\">Visitez le site<a href=\"https:\/\/web.archive.org\/web\/20250817095856\/https:\/\/nodejs.org\/\">\u00a0Site officiel de Node.js<\/a>.<\/li><li aria-level=\"1\">Download the macOS installer and run the\u00a0.pkg\u00a0file.<\/li><li aria-level=\"1\">Suivez les instructions pour terminer l'installation.<\/li><\/ol><h2><b>3. Installation de Node.js et de npm sous Linux<\/b><\/h2><p><b>\u00c9tape 1 : Mise \u00e0 jour de l'index de votre paquet<\/b><\/p><ol><li aria-level=\"1\">Terminal ouvert.<\/li><li aria-level=\"1\">Ex\u00e9cutez la commande suivante pour mettre \u00e0 jour l'index du paquet :<br \/>sudo apt update<\/li><\/ol><p><b>\u00c9tape 2 : Installer Node.js et npm<\/b><\/p><ul><li aria-level=\"1\"><b>Pour les distributions bas\u00e9es sur Debian\/Ubuntu<\/b>:<br \/>sudo apt install nodejs npm<br \/><b><\/b><\/li><li aria-level=\"1\"><b>Pour les distributions bas\u00e9es sur CentOS\/RHEL<\/b>:<br \/>sudo yum install nodejs npm<br \/><b><\/b><\/li><li aria-level=\"1\"><b>Pour Fedora<\/b>:<br \/>sudo dnf install nodejs npm<\/li><\/ul><p><b>\u00c9tape 3 : V\u00e9rifier l'installation<\/b><\/p><ol><li aria-level=\"1\">In Terminal, type\u00a0node -v\u00a0to check the Node.js version.<\/li><li aria-level=\"1\">Type\u00a0npm -v\u00a0to check the npm version.<\/li><\/ol><h2><b>M\u00e9thode alternative : Installation via Node Version Manager (nvm)<\/b><\/h2><ol><li>Install\u00a0nvm\u00a0(Node Version Manager) by running:<br \/><pre>curl -o- https:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.39.2\/install.sh | bash<\/pre><\/li><li>Load\u00a0nvm:<br \/><pre>source ~\/bashrc<\/pre><\/li><li>Install Node.js using\u00a0nvm:<br \/><pre>nvm install node<\/pre><\/li><li><p>Verify by typing node -v and npm -v.<\/p><\/li><\/ol><h2><b>Conclusion<\/b><\/h2><div class=\"elementor-element elementor-element-ba04ed5 elementor-widget elementor-widget-theme-post-content animated fadeInDown\" data-id=\"ba04ed5\" data-element_type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;fadeInDown&quot;}\" data-widget_type=\"theme-post-content.default\"><div class=\"elementor-widget-container\"><div class=\"elementor elementor-41966\" data-elementor-type=\"wp-post\" data-elementor-id=\"41966\" data-elementor-post-type=\"post\"><div class=\"elementor-element elementor-element-ee111f0 e-flex e-con-boxed e-con e-parent e-lazyloaded\" data-id=\"ee111f0\" data-element_type=\"container\"><div class=\"e-con-inner\"><div class=\"elementor-element elementor-element-5ffcd61 elementor-widget elementor-widget-text-editor\" data-id=\"5ffcd61\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\"><div class=\"elementor-widget-container\"><p>Installing Node.js and npm is straightforward, whether you\u2019re on Windows, macOS, or Linux. By following this guide, you\u2019ll have Node.js and npm up and running in no time, ready for your development projects. With\u00a0<a href=\"https:\/\/web.archive.org\/web\/20250817095856\/https:\/\/www.carmatec.com\/hire-developers\/hire-nodejs-developer\/\">Noeud.js<\/a>\u00a0installed, you\u2019re all set to explore the world of server-side\u00a0<a href=\"https:\/\/web.archive.org\/web\/20250817095856\/https:\/\/www.carmatec.com\/hire-developers\/hire-javascript-developer\/\">Javascript<\/a>\u00a0et commencez \u00e0 construire des\u00a0<a href=\"https:\/\/web.archive.org\/web\/20250817095856\/https:\/\/www.carmatec.com\/web-application-development\/\">applications<\/a>.<\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/div>\t\t\t\t\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\u2019ll 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:\/\/www.carmatec.com\/fr_fr\/wp-json\/wp\/v2\/posts\/41966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.carmatec.com\/fr_fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.carmatec.com\/fr_fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.carmatec.com\/fr_fr\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.carmatec.com\/fr_fr\/wp-json\/wp\/v2\/comments?post=41966"}],"version-history":[{"count":160,"href":"https:\/\/www.carmatec.com\/fr_fr\/wp-json\/wp\/v2\/posts\/41966\/revisions"}],"predecessor-version":[{"id":51039,"href":"https:\/\/www.carmatec.com\/fr_fr\/wp-json\/wp\/v2\/posts\/41966\/revisions\/51039"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.carmatec.com\/fr_fr\/wp-json\/wp\/v2\/media\/41972"}],"wp:attachment":[{"href":"https:\/\/www.carmatec.com\/fr_fr\/wp-json\/wp\/v2\/media?parent=41966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.carmatec.com\/fr_fr\/wp-json\/wp\/v2\/categories?post=41966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.carmatec.com\/fr_fr\/wp-json\/wp\/v2\/tags?post=41966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}