{"id":50167,"date":"2026-02-06T08:16:32","date_gmt":"2026-02-06T08:16:32","guid":{"rendered":"https:\/\/www.carmatec.com\/?p=50167"},"modified":"2026-02-06T08:16:32","modified_gmt":"2026-02-06T08:16:32","slug":"como-instalar-nvm-en-macos-windows-y-linux","status":"publish","type":"post","link":"https:\/\/www.carmatec.com\/es\/how-to-install-nvm-on-macos-windows-and-linux\/","title":{"rendered":"C\u00f3mo instalar NVM en macOS, Windows y Linux"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"50167\" class=\"elementor elementor-50167\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-01f1794 e-flex e-con-boxed e-con e-parent\" data-id=\"01f1794\" 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-6c4e46e elementor-widget elementor-widget-text-editor\" data-id=\"6c4e46e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"font-weight: 400;\">Node Version Manager (NVM) es una herramienta imprescindible para los desarrolladores que trabajan con Node.js. Permite instalar, gestionar y alternar entre varias <\/span><a href=\"https:\/\/nodejs.org\/en\"><span style=\"font-weight: 400;\">Nodo.js<\/span><\/a><span style=\"font-weight: 400;\"> versiones de forma fluida entre diferentes proyectos. Tanto si eres un principiante que est\u00e1 configurando su primer entorno de desarrollo como si eres un desarrollador experimentado que gestiona varias aplicaciones de Node.js, NVM simplifica el control de versiones y aumenta la productividad.<\/span><\/p><p><span style=\"font-weight: 400;\">En esta gu\u00eda, aprender\u00e1s <\/span><b>C\u00f3mo instalar NVM en macOS, Windows y Linux<\/b><span style=\"font-weight: 400;\">, junto con consejos de uso, recomendaciones para la resoluci\u00f3n de problemas y buenas pr\u00e1cticas.<\/span><\/p><p><b>Introducci\u00f3n a NVM (Node Version Manager)<\/b><\/p><p><span style=\"font-weight: 400;\">NVM gestiona <\/span><b>Nodo.js<\/b><span style=\"font-weight: 400;\"> versiones por usuario en directorios aislados. Admite versiones espec\u00edficas para cada proyecto a trav\u00e9s de <\/span><span style=\"font-weight: 400;\"><code>.nvmrc<\/code><\/span><span style=\"font-weight: 400;\"> archivos y mantiene los paquetes globales de npm separados por versi\u00f3n de Node.<\/span><\/p><p><b>\u00bfPor qu\u00e9 utilizar NVM (Node Version Manager) en 2026?<\/b><\/p><p><b>Nodo.js<\/b><span style=\"font-weight: 400;\"> sigue un calendario de lanzamientos predecible:<\/span><\/p><ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Las versiones pares se convierten en <\/span><b>LTS<\/b><span style=\"font-weight: 400;\"> (Soporte a largo plazo).<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Actual <\/span><b>LTS<\/b><span style=\"font-weight: 400;\"> versiones (febrero de 2026):<\/span><ul><li style=\"font-weight: 400;\" aria-level=\"2\"><b>Nodo 24<\/b><span style=\"font-weight: 400;\"> (Krypton) \u2014 LTS activa (iniciada en mayo de 2025; con soporte hasta aproximadamente abril de 2028).<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"2\"><b>Nodo 22<\/b><span style=\"font-weight: 400;\"> (Jod) \u2014 Mantenimiento LTS (hasta abril de 2026).<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"2\"><b>Nodo 20<\/b><span style=\"font-weight: 400;\"> (Iron) \u2014 Mantenimiento LTS (hasta abril de 2026).<\/span><\/li><\/ul><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><b>Nodo 25<\/b><span style=\"font-weight: 400;\"> \u2014 Versi\u00f3n actual (no LTS; \u00faltimas funciones a fecha de enero de 2026).<\/span><\/li><\/ul><p><span style=\"font-weight: 400;\">NVM ayuda a mantener los proyectos heredados, a probar nuevas funciones y a garantizar la coherencia del equipo.<\/span><\/p><h4><b>Resumen de las implementaciones de NVM<\/b><\/h4><table><tbody><tr><td><b>Plataforma<\/b><\/td><td><b>Nombre de la herramienta<\/b><\/td><td><b>Enlace al repositorio<\/b><\/td><td><b>\u00daltima versi\u00f3n (febrero de 2026)<\/b><\/td><td><b>Tipo de instalaci\u00f3n<\/b><\/td><\/tr><tr><td><span style=\"font-weight: 400;\">macOS \/ Linux \/ WSL<\/span><\/td><td><span style=\"font-weight: 400;\">nvm-sh\/nvm<\/span><\/td><td><span style=\"font-weight: 400;\">github.com\/nvm-sh\/nvm<\/span><\/td><td><span style=\"font-weight: 400;\">v0.40.4 (29 de enero de 2026)<\/span><\/td><td><span style=\"font-weight: 400;\">Script de Shell<\/span><\/td><\/tr><tr><td><span style=\"font-weight: 400;\">Nativo de Windows<\/span><\/td><td><span style=\"font-weight: 400;\">nvm-windows<\/span><\/td><td><span style=\"font-weight: 400;\">github.com\/coreybutler\/nvm-windows<\/span><\/td><td><span style=\"font-weight: 400;\">1.2.2 (31 de diciembre de 2024)<\/span><\/td><td><span style=\"font-weight: 400;\">.instalador .exe<\/span><\/td><\/tr><\/tbody><\/table><p><span style=\"font-weight: 400;\">Utiliza nvm-sh\/nvm dentro de <\/span><b>WSL<\/b><span style=\"font-weight: 400;\"> en Windows para obtener un comportamiento similar al de Unix.<\/span><\/p><h3><b>Requisitos previos a la instalaci\u00f3n de NVM<\/b><\/h3><p><span style=\"font-weight: 400;\">Antes de instalar NVM, aseg\u00farate de que dispones de:<\/span><\/p><ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Un terminal o una l\u00ednea de comandos<\/span><span style=\"font-weight: 400;\"><br \/><\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Conocimientos b\u00e1sicos sobre la l\u00ednea de comandos<\/span><span style=\"font-weight: 400;\"><br \/><\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Acceso de administrador o con \u00absudo\u00bb (para macOS y Linux)<\/span><span style=\"font-weight: 400;\"><br \/><\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Acceso a PowerShell o al s\u00edmbolo del sistema (para Windows)<\/span><\/li><\/ul><p><span style=\"font-weight: 400;\">No es necesario tener ninguna instalaci\u00f3n de Node.js, pero NVM puede coexistir con ella si fuera necesario.<\/span><\/p><h3><b>C\u00f3mo instalar NVM en macOS<\/b><\/h3><p><span style=\"font-weight: 400;\">Los usuarios de macOS pueden instalar NVM utilizando cualquiera de las siguientes opciones: <\/span><b>rizo<\/b><span style=\"font-weight: 400;\"> o <\/span><b>wget<\/b><span style=\"font-weight: 400;\">.<\/span><\/p><h4><b>Paso 1: Abre el Terminal<\/b><\/h4><p><span style=\"font-weight: 400;\">Puedes abrir el Terminal desde <\/span><b>Aplicaciones \u2192 Utilidades \u2192 Terminal<\/b><span style=\"font-weight: 400;\"> o mediante la b\u00fasqueda con Spotlight.<\/span><\/p><h4><b>Paso 2: Instalar NVM con curl<\/b><\/h4><p><span style=\"font-weight: 400;\">Ejecuta el siguiente comando:<\/span><\/p><pre><span style=\"font-weight: 400;\">curl -o-\nhttps:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.39.7\/install.sh | bash<\/span><\/pre><p><span style=\"font-weight: 400;\">Como alternativa, utilizando wget:<\/span><\/p><pre><span style=\"font-weight: 400;\">wget -qO-\nhttps:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.39.7\/install.sh | bash<\/span><\/pre><h4><b>Paso 3: Cargar la memoria NVM<\/b><\/h4><p><span style=\"font-weight: 400;\">Tras la instalaci\u00f3n, reinicia el terminal o ejecuta:<\/span><\/p><h4><b>Paso 4: Comprobar la instalaci\u00f3n<\/b><\/h4><pre><span style=\"font-weight: 400;\">nvm --versi\u00f3n<\/span><\/pre><p><span style=\"font-weight: 400;\">Si aparece un n\u00famero de versi\u00f3n, significa que NVM se ha instalado correctamente en macOS.<\/span><\/p><h3><b>C\u00f3mo instalar NVM en Linux<\/b><\/h3><p><span style=\"font-weight: 400;\">La instalaci\u00f3n de NVM en Linux es similar a la de macOS y es compatible con la mayor\u00eda de las distribuciones, entre ellas Ubuntu, Debian, Fedora y CentOS.<\/span><\/p><h4><b>Paso 1: Abre el Terminal<\/b><\/h4><p><span style=\"font-weight: 400;\">Utiliza tu aplicaci\u00f3n de terminal predeterminada.<\/span><\/p><h4><b>Paso 2: Instalar NVM<\/b><\/h4><p><span style=\"font-weight: 400;\">Ejecuta el siguiente comando:<\/span><\/p><pre><span style=\"font-weight: 400;\">curl -o-\nhttps:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.39.7\/install.sh | bash<\/span><\/pre><h4><b>Paso 3: Actualizar la configuraci\u00f3n del shell<\/b><\/h4><p><span style=\"font-weight: 400;\">Actualiza la configuraci\u00f3n de tu shell:<\/span><\/p><h4><b>Paso 4: Confirmar la instalaci\u00f3n<\/b><\/h4><pre><span style=\"font-weight: 400;\">nvm --versi\u00f3n<\/span><\/pre><p><span style=\"font-weight: 400;\">NVM ya deber\u00eda estar disponible en tu sistema Linux.<\/span><\/p><h3><b>C\u00f3mo instalar NVM en Windows<\/b><\/h3><p><span style=\"font-weight: 400;\">Windows utiliza una implementaci\u00f3n independiente denominada <\/span><b>nvm-windows<\/b><span style=\"font-weight: 400;\">, que ofrece una funcionalidad similar.<\/span><\/p><h4><b>Paso 1: Descargar NVM para Windows<\/b><\/h4><p><span style=\"font-weight: 400;\">Visita el repositorio oficial de GitHub de nvm-windows y descarga el instalador m\u00e1s reciente.<\/span><\/p><h4><b>Paso 2: Ejecuta el instalador<\/b><\/h4><ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Inicia el <\/span><span style=\"font-weight: 400;\"><code>.exe<\/code><\/span><span style=\"font-weight: 400;\"> archivo<\/span><span style=\"font-weight: 400;\"><br \/><\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Sigue las instrucciones del asistente de configuraci\u00f3n<\/span><span style=\"font-weight: 400;\"><br \/><\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Selecciona los directorios de instalaci\u00f3n y de Node.js<\/span><\/li><\/ul><h4><b>Paso 3: Reiniciar el S\u00edmbolo del sistema o PowerShell<\/b><\/h4><p><span style=\"font-weight: 400;\">Una vez finalizada la instalaci\u00f3n, reinicia tu terminal.<\/span><\/p><h4><b>Paso 4: Comprobar la instalaci\u00f3n<\/b><\/h4><pre><span style=\"font-weight: 400;\">Versi\u00f3n de nvm<\/span><\/pre><p><span style=\"font-weight: 400;\">Deber\u00edas ver la versi\u00f3n de NVM instalada en pantalla.<\/span><\/p><h3><b>Instalaci\u00f3n de Node.js con NVM<\/b><\/h3><p><span style=\"font-weight: 400;\">Una vez instalado NVM, instalar Node.js es muy sencillo.<\/span><\/p><h4><b>Instala la \u00faltima versi\u00f3n de Node.js<\/b><\/h4><p><span style=\"font-weight: 400;\"><code>nvm install node<\/code><\/span><\/p><h4><b>Instalar una versi\u00f3n concreta de Node.js<\/b><\/h4><p><span style=\"font-weight: 400;\"><code>nvm install 18.20.0<\/code><\/span><\/p><h4><b>Lista de versiones instaladas<\/b><\/h4><p><span style=\"font-weight: 400;\"><code>Da igual, ls<\/code><\/span><\/p><h4><b>Cambiar de versi\u00f3n de Node.js<\/b><\/h4><p><span style=\"font-weight: 400;\"><code>Da igual, usa la versi\u00f3n 18.20.0<\/code><\/span><\/p><p><span style=\"font-weight: 400;\">NVM actualiza autom\u00e1ticamente npm para cada versi\u00f3n de Node.js.<\/span><\/p><h3><b>Configuraci\u00f3n de la versi\u00f3n predeterminada de Node.js<\/b><\/h3><p><span style=\"font-weight: 400;\">Para establecer una versi\u00f3n predeterminada de Node.js:<\/span><\/p><p><span style=\"font-weight: 400;\"><code>nvm alias default 18.20.0<\/code><\/span><\/p><p><span style=\"font-weight: 400;\">De este modo, se garantiza que se utilice la versi\u00f3n seleccionada cada vez que se inicie una nueva sesi\u00f3n de terminal.<\/span><\/p><h3><b>Uso de NVM por proyecto<\/b><\/h3><p><span style=\"font-weight: 400;\">Puedes crear un <\/span><span style=\"font-weight: 400;\"><code>.nvmrc<\/code><\/span><span style=\"font-weight: 400;\"> archivo situado en el directorio de tu proyecto:<\/span><\/p><pre><span style=\"font-weight: 400;\">echo 18.20.0 &gt; .nvmrc\n<\/span><\/pre><p><span style=\"font-weight: 400;\">A continuaci\u00f3n, ejecuta:<\/span><\/p><p><span style=\"font-weight: 400;\"><code>nvm usar<\/code><\/span><\/p><p><span style=\"font-weight: 400;\">Esto garantiza la coherencia entre los distintos equipos y entornos.<\/span><\/p><h3><b>Gu\u00eda r\u00e1pida de comandos habituales de NVM<\/b><\/h3><table><tbody><tr><td><b>Dominio<\/b><\/td><td><b>Descripci\u00f3n<\/b><\/td><\/tr><tr><td><span style=\"font-weight: 400;\">nvm install node<\/span><\/td><td><span style=\"font-weight: 400;\">Instala la \u00faltima versi\u00f3n de Node.js<\/span><\/td><\/tr><tr><td><span style=\"font-weight: 400;\">nvm install<\/span><\/td><td><span style=\"font-weight: 400;\">Instalar una versi\u00f3n concreta de Node.js<\/span><\/td><\/tr><tr><td><span style=\"font-weight: 400;\">No importa, usa<\/span><\/td><td><span style=\"font-weight: 400;\">Cambiar la versi\u00f3n de Node.js<\/span><\/td><\/tr><tr><td><span style=\"font-weight: 400;\">Da igual, ls<\/span><\/td><td><span style=\"font-weight: 400;\">Mostrar las versiones instaladas<\/span><\/td><\/tr><tr><td><span style=\"font-weight: 400;\">nvm ls-remote<\/span><\/td><td><span style=\"font-weight: 400;\">Mostrar las versiones disponibles de Node.js<\/span><\/td><\/tr><tr><td><span style=\"font-weight: 400;\">nvm desinstalar<\/span><\/td><td><span style=\"font-weight: 400;\">Eliminar la versi\u00f3n de Node.js<\/span><\/td><\/tr><\/tbody><\/table><h3><b>Soluci\u00f3n de problemas comunes relacionados con la memoria NVM<\/b><\/h3><h4><b>No se ha encontrado el comando NVM<\/b><\/h4><ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Aseg\u00farate de que se ejecute el archivo de configuraci\u00f3n de tu shell<\/span><\/li><li aria-level=\"1\"><span style=\"font-weight: 400;\">Reinicia el terminal<\/span><\/li><\/ul><h4><b>Errores de permisos<\/b><\/h4><ul><li><span style=\"font-weight: 400;\">Evita utilizar <\/span><span style=\"font-weight: 400;\"><code>sudo<\/code><\/span><span style=\"font-weight: 400;\"> con NVM<\/span><span style=\"font-weight: 400;\"><br \/><\/span><\/li><li><span style=\"font-weight: 400;\">Aseg\u00farate de que la propiedad del directorio sea la correcta<\/span><\/li><\/ul><h4><b>Problemas con la ruta de acceso de Windows<\/b><\/h4><ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Aseg\u00farate de que no haya instalaciones de Node.js que entren en conflicto<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Reinicia el sistema si es necesario<\/span><\/li><\/ul><h3><b>Buenas pr\u00e1cticas para el uso de la memoria no vol\u00e1til (NVM)<\/b><\/h3><ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Utilice <\/span><span style=\"font-weight: 400;\"><code>.nvmrc<\/code><\/span><span style=\"font-weight: 400;\"> archivos para garantizar la coherencia del equipo<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Evita los paquetes globales de npm siempre que sea posible<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Mant\u00e9n las versiones LTS de Node.js para el entorno de producci\u00f3n<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Actualiza peri\u00f3dicamente la NVM<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Probar aplicaciones en varias versiones de Node<\/span><\/li><\/ul><h3><b>\u00bfEs la memoria NVM adecuada para entornos de producci\u00f3n?<\/b><\/h3><p><span style=\"font-weight: 400;\">NVM est\u00e1 dise\u00f1ado principalmente para entornos de desarrollo. En producci\u00f3n, suele preferirse el uso de herramientas de contenedorizaci\u00f3n como Docker o entornos gestionados de Node.js. Sin embargo, NVM sigue siendo una herramienta imprescindible para el desarrollo local, las pruebas y los procesos de integraci\u00f3n continua (CI).<\/span><\/p><h2><b>Conclusi\u00f3n<\/b><\/h2><p><span style=\"font-weight: 400;\">La instalaci\u00f3n de NVM en macOS, Windows y Linux es un paso fundamental para el desarrollo moderno con Node.js. Aporta flexibilidad, elimina los conflictos de versiones y agiliza los flujos de trabajo de los proyectos. Al dominar NVM, los desarrolladores pueden centrarse m\u00e1s en crear aplicaciones robustas que en gestionar entornos.<\/span><\/p><p><span style=\"font-weight: 400;\">Para las empresas que deseen desarrollar aplicaciones Node.js escalables y de alto rendimiento, <\/span><a href=\"https:\/\/www.carmatec.com\/es\/\"><b>Carmatec<\/b><\/a><span style=\"font-weight: 400;\"> destaca por ser una empresa de confianza <\/span><a href=\"https:\/\/www.carmatec.com\/es\/node-js-development-company\/\"><b>Empresa de desarrollo de Node.js<\/b><\/a><span style=\"font-weight: 400;\">. Gracias a su amplia experiencia en soluciones de nivel empresarial, Carmatec ayuda a las organizaciones a dise\u00f1ar, desarrollar y mantener potentes aplicaciones Node.js. Tanto si deseas modernizar un sistema ya existente como si <\/span><a href=\"https:\/\/www.carmatec.com\/es\/contratar-desarrolladores\/contratar-desarrollador-nodejs\/\"><b>Contratar desarrolladores de Node.js<\/b><\/a><span style=\"font-weight: 400;\"> Para un nuevo proyecto, Carmatec ofrece soluciones fiables, seguras y preparadas para el futuro.<\/span><\/p>\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>Node Version Manager (NVM) is an essential tool for developers working with Node.js. It allows you to install, manage, and switch between multiple Node.js versions seamlessly across different projects. Whether you\u2019re a beginner setting up your first development environment or an experienced developer handling multiple Node.js applications, NVM simplifies version control and boosts productivity. In [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":50390,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-50167","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"_links":{"self":[{"href":"https:\/\/www.carmatec.com\/es\/wp-json\/wp\/v2\/posts\/50167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.carmatec.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.carmatec.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.carmatec.com\/es\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.carmatec.com\/es\/wp-json\/wp\/v2\/comments?post=50167"}],"version-history":[{"count":104,"href":"https:\/\/www.carmatec.com\/es\/wp-json\/wp\/v2\/posts\/50167\/revisions"}],"predecessor-version":[{"id":50391,"href":"https:\/\/www.carmatec.com\/es\/wp-json\/wp\/v2\/posts\/50167\/revisions\/50391"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.carmatec.com\/es\/wp-json\/wp\/v2\/media\/50390"}],"wp:attachment":[{"href":"https:\/\/www.carmatec.com\/es\/wp-json\/wp\/v2\/media?parent=50167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.carmatec.com\/es\/wp-json\/wp\/v2\/categories?post=50167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.carmatec.com\/es\/wp-json\/wp\/v2\/tags?post=50167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}