{"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 est un puissant environnement d'ex\u00e9cution JavaScript qui vous permet d'ex\u00e9cuter du code JavaScript c\u00f4t\u00e9 serveur. npm (Node Package Manager) est le gestionnaire de paquets par d\u00e9faut de Node.js ; il est indispensable pour g\u00e9rer les paquets et les d\u00e9pendances JavaScript. Dans ce guide, nous vous expliquerons \u00e9tape par \u00e9tape comment installer Node.js et npm sous Windows, macOS et 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\">Lancez le fichier .msi que vous avez t\u00e9l\u00e9charg\u00e9.<\/li><li aria-level=\"1\">Suivez les instructions d'installation en veillant \u00e0 cocher la case permettant d'inclure npm dans l'installation.<\/li><li aria-level=\"1\">Cliquez sur \u201c Suivant \u201d puis sur \u201c Installer \u201d pour terminer l'installation.<\/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\">Tapez \u00ab node -v \u00bb pour v\u00e9rifier la version de Node.js.<\/li><li aria-level=\"1\">Tapez \u00ab npm -v \u00bb pour v\u00e9rifier la version de npm.<\/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>\u00a0si ce n'est pas d\u00e9j\u00e0 fait, en ex\u00e9cutant la commande suivante :<br \/><pre>\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"<\/pre><\/li><li aria-level=\"1\">Installez Node.js et npm \u00e0 l'aide de la commande suivante :<br \/><pre>brew install node<\/pre><\/li><\/ol><p><b>\u00c9tape 2 : V\u00e9rifier l'installation<\/b><\/p><ol><li aria-level=\"1\">Dans Terminal, tapez `node -v` pour v\u00e9rifier la version de Node.js.<\/li><li aria-level=\"1\">Tapez \u00ab npm -v \u00bb pour v\u00e9rifier la version de npm.<\/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\">T\u00e9l\u00e9chargez le programme d'installation pour macOS et ex\u00e9cutez le fichier .pkg.<\/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\">Dans Terminal, tapez `node -v` pour v\u00e9rifier la version de Node.js.<\/li><li aria-level=\"1\">Tapez \u00ab npm -v \u00bb pour v\u00e9rifier la version de npm.<\/li><\/ol><h2><b>M\u00e9thode alternative : Installation via Node Version Manager (nvm)<\/b><\/h2><ol><li>Installez nvm (Node Version Manager) en ex\u00e9cutant la commande suivante :<br \/><pre>curl -o- https:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.39.2\/install.sh | bash<\/pre><\/li><li>Charger nvm :<br \/><pre>source ~\/bashrc<\/pre><\/li><li>Installez Node.js \u00e0 l'aide de nvm :<br \/><pre>nvm install node<\/pre><\/li><li><p>V\u00e9rifiez en tapant \u00ab node -v \u00bb et \u00ab npm -v \u00bb.<\/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>L'installation de Node.js et de npm est tr\u00e8s simple, que vous utilisiez Windows, macOS ou Linux. En suivant ce guide, vous aurez Node.js et npm op\u00e9rationnels en un clin d'\u0153il, pr\u00eats \u00e0 \u00eatre utilis\u00e9s pour vos projets de d\u00e9veloppement. Avec\u00a0<a href=\"https:\/\/web.archive.org\/web\/20250817095856\/https:\/\/www.carmatec.com\/hire-developers\/hire-nodejs-developer\/\">Noeud.js<\/a>\u00a0Une fois l'installation termin\u00e9e, vous \u00eates pr\u00eat \u00e0 explorer l'univers du c\u00f4t\u00e9 serveur\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}]}}