<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Raúl Chirinos</title>
    <description>The latest articles on DEV Community by Raúl Chirinos (@rjchirinos).</description>
    <link>https://dev.to/rjchirinos</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F252562%2F41981a18-dca2-488b-bba3-ce99635f08c9.jpg</url>
      <title>DEV Community: Raúl Chirinos</title>
      <link>https://dev.to/rjchirinos</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rjchirinos"/>
    <language>en</language>
    <item>
      <title>Setting a webdev coding environment for Windows Users with WSL2</title>
      <dc:creator>Raúl Chirinos</dc:creator>
      <pubDate>Sun, 25 Oct 2020 14:09:34 +0000</pubDate>
      <link>https://dev.to/rjchirinos/setting-a-webdev-coding-environment-for-windows-users-with-wsl2-445e</link>
      <guid>https://dev.to/rjchirinos/setting-a-webdev-coding-environment-for-windows-users-with-wsl2-445e</guid>
      <description>&lt;p&gt;For a long time developing or programming in Windows was almost unthinkable, the lack of a bash command console, a crude file system and other factors made programmers quickly switch to a Unix-like OS such as Linux or MacOS. But this year the changes brought by Microsoft with WSL in the latest versions of Windows 10 may turn the tables.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/rjchirinos/creando-un-setup-de-desarrollo-web-en-windows-con-wsl2-2k3b"&gt;Léelo en español&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Content
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🔍 What is WSL?
&lt;/li&gt;
&lt;li&gt;⚙  Install and set up WSL
&lt;/li&gt;
&lt;li&gt;🔧 Config Zsh and Oh-my-zsh
&lt;/li&gt;
&lt;li&gt;👩‍💻 Install Node.js and NPM
&lt;/li&gt;
&lt;li&gt;📜 Code Editor
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🔍 What is WSL? &lt;a&gt;&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;WSL stands for "Windows Subsystem for Linux" and basically that is WSL, a subsystem that allows you to run a minified version of a Linux distriburion within your Windows. WSL2, the most recent version of WSL works with Hyper-V technology, which allows you to run the entire Linux kernel with less resource consumption than a conventional virtual machine.&lt;/p&gt;

&lt;p&gt;With WSL you have access to a bash (or zsh) command console, the Linux file system and almost all the tools a Linux distro could offer you to code.&lt;/p&gt;

&lt;h2&gt;
  
  
  ⚙ Install and Configure WSL &lt;a&gt;&lt;/a&gt;
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Preparing Windows
&lt;/h3&gt;

&lt;p&gt;The first thing you should do is &lt;strong&gt;make sure your version of Windows is up-to-date&lt;/strong&gt; and can support WSL2. To do this you must go to the Windows Settings Center, which you can access by pressing the Windows key and the i key on your keyboard [Win + i] at the same time.&lt;/p&gt;

&lt;p&gt;Once inside the Settings Center you must go to the "Updates and Security" section and there click on "Check for Updates". When all the updates are installed and your operating system is up-to-date you can enable WSL on your system&lt;/p&gt;

&lt;h3&gt;
  
  
  Enabling WSL
&lt;/h3&gt;

&lt;p&gt;To enable WSL you must access the Windows features menu, you can do it by using the search functionality of the &lt;em&gt;Start Menu&lt;/em&gt; and typing "Turn Windows features on or off" and once there make sure to check the options "Virtual Machine Platform" and "Windows Subsystem for Linux" and disable the option "Windows Hypervisor Platform". After accepting these settings your PC will reboot and be configured with the new features.&lt;/p&gt;

&lt;p&gt;Once restarted open the Windows Powershell and run the following command to set WSL to the default version 2&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;wsl &lt;span class="nt"&gt;--set-default-version&lt;/span&gt; 2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Installing Ubuntu and the Windows Terminal
&lt;/h3&gt;

&lt;p&gt;In the Microsoft store you must &lt;strong&gt;search and install the latest version of Ubuntu LTS&lt;/strong&gt; which at the time of writing this post is version 20.04, then being in the store you must also search and install Windows Terminal, a terminal emulator quite powerful created by Microsoft and with which you can access your Ubuntu console easily.&lt;/p&gt;

&lt;p&gt;Once installed everything we will access to our Ubuntu bash console opening the Windows terminal that by default must be opened with its CMD profile, in the tab bar of the terminal you will be able to access the menu (the tab with the down arrow) and select your Ubuntu version.&lt;/p&gt;

&lt;h3&gt;
  
  
  Setting Ubuntu
&lt;/h3&gt;

&lt;p&gt;If you want Ubuntu to be loaded by default when you open the terminal, you must go to "Settings" in the terminal menu, a text file will be opened from which you can see a list of profiles and their settings. Each profile has an id in the field "guid", at the beginning of the file you will find a field named &lt;em&gt;"defaultProfile "&lt;/em&gt;, you must replace the value of this field by the Ubuntu profile guid, save the file and when you restart the terminal it will open by default in the Ubuntu console.&lt;/p&gt;

&lt;p&gt;Once inside the Ubuntu console you will be asked to assign a username and password for your operating system.&lt;/p&gt;

&lt;p&gt;Another fundamental step is to make the terminal open by default in the home of your Ubuntu file system (WSL works better inside the Linux file system) for doing this you must edit your bash configuration file. In the terminal execute the command &lt;code&gt;nano ~/.bashrc&lt;/code&gt; and at the end of the file add a line with &lt;code&gt;cd ~&lt;/code&gt;, save the file with [Control + O] and restart the terminal.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔧 Configure Zsh and Oh-my-zsh &lt;a&gt;&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;This step is completely optional but super recommended. Zsh is a shell for Unix-like systems just like bash, but with a lot of features. Basically a bash with steroids. With Zsh and Oh-my-zsh you will be able to run all the commands you use in bash normally but you will also be able to add a lot of plugins, themes and features, which will level-up your experience with the terminal.&lt;/p&gt;

&lt;p&gt;To install Zsh and Oh-My-Zsh you must run the following commands in the terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;zsh
&lt;span class="nv"&gt;$ &lt;/span&gt;sh &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You will be asked to confirm if you want to run Zsh by default. After that you will be able to restart your terminal and you will automatically be running in Zsh instead of bash.&lt;/p&gt;

&lt;p&gt;As in bash, in zsh you must touch the configuration file so that it starts in the Ubuntu home, for this you will have to run in the terminal the command &lt;code&gt;nano ~/.zshrc&lt;/code&gt; and add again a row that says &lt;code&gt;cd ~&lt;/code&gt; at the end of the file, save with [Control + O] and when you restart the terminal you should be in the Ubuntu home.&lt;/p&gt;

&lt;p&gt;From the Zsh configuration file you can also select the theme and the plugins you want to have. I personally use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Git: shows which branch you're in.&lt;/li&gt;
&lt;li&gt;Z: useful to move between your files easily.&lt;/li&gt;
&lt;li&gt;Zsh-suggestions: shows you suggestions for commands based on the ones you normally use.&lt;/li&gt;
&lt;li&gt;Zsh-nvm: I'll tell you about this one later.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  👩💻 Install Node.js and NPM &lt;a&gt;&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;The easiest way to install some version of Node.js is through NVM which is a version manager for Node, with which you can download and install several versions of Node and jump between them.&lt;/p&gt;

&lt;p&gt;To download the latest version of Node stable you must download NVM and install the latest version from there:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-or-&lt;/span&gt; https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash
nvm &lt;span class="nb"&gt;install &lt;/span&gt;node &lt;span class="c"&gt;# this will download the latest stable version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On the other hand, if you want to download a specific version, like 6.14.4, you can run this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nvm &lt;span class="nb"&gt;install &lt;/span&gt;6.14.4 &lt;span class="c"&gt;# or 10.10.0, 8.9.1, etc&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After that you can run &lt;code&gt;node --version&lt;/code&gt; and &lt;code&gt;npm --version&lt;/code&gt; to check that your Node and NPM version have been installed correctly.&lt;/p&gt;

&lt;h3&gt;
  
  
  Additional step if you use ZSH &lt;a&gt;&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;Many times NVM does not load by default when opening the Zsh console, this can be solved with an Oh-my-zsh plugin called zsh-nvm. To install it, just open the zsh configuration file by doing &lt;code&gt;nano ~/.zshrc&lt;/code&gt; and look for the row of plugins, which should look like this: &lt;code&gt;plugins=(git)&lt;/code&gt;, you must add the name of the plugin to be installed (in our case zsh-nvm) next to the ones already listed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;plugins&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;git zsh-nvm&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By saving and restarting the terminal, NVM, Node and NPM should work properly.&lt;/p&gt;

&lt;h2&gt;
  
  
  📜 Code Editor &lt;a&gt;&lt;/a&gt;&lt;a&gt;
&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;For this case and as a general rule I recommend using Visual Studio Code as code editor, it is a lightweight editor and at the same time powerful enough for most development tasks, plus it is quite customizable.&lt;/p&gt;

&lt;p&gt;We will download VS Code for Windows from its &lt;a href="https://code.visualstudio.com/Download"&gt;official website&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once in VS Code we will go to the plugins tab [Control + Shift + X] and find and install the "Remote WSL" extension, this will allow us to open any Ubuntu directory or file in Visual Studio Code and use all its features.&lt;/p&gt;

&lt;p&gt;Once installed we can run &lt;code&gt;code .&lt;/code&gt; in the Ubuntu terminal from any directory and it will open automatically in Visual Studio Code.&lt;/p&gt;

&lt;h2&gt;
  
  
  🤟 Conclusions
&lt;/h2&gt;

&lt;p&gt;If you have completed all the steps above you will have your hybrid development environment within Windows ready, with which you can perform most programming tasks without missing the Unix OS's.&lt;/p&gt;

&lt;p&gt;With this setup I don't expect to convince the Linux faithful users to switch to Windows, far from it. Linux still has a lot of special features that today are not achievable with Windows. However I hope this guide will serve as an option for those people who want to get into the world of web development and for some reason can not (or don't want to) switch to Linux.&lt;/p&gt;

&lt;p&gt;This is the setup that I use today to develop and work in frontend, mainly with React, and it has worked pretty well, so I recommend you to give it a try if you are not ready to switch to Linux or Apple. &lt;/p&gt;

&lt;p&gt;To this guide I will add another post explaining how to lift your Docker containers from WSL on Windows with Docker Desktop.&lt;/p&gt;

</description>
      <category>windows</category>
      <category>setup</category>
      <category>webdev</category>
      <category>ubuntu</category>
    </item>
    <item>
      <title>Creando un setup de Desarrollo Web en Windows con WSL2.</title>
      <dc:creator>Raúl Chirinos</dc:creator>
      <pubDate>Sun, 11 Oct 2020 20:41:35 +0000</pubDate>
      <link>https://dev.to/rjchirinos/creando-un-setup-de-desarrollo-web-en-windows-con-wsl2-2k3b</link>
      <guid>https://dev.to/rjchirinos/creando-un-setup-de-desarrollo-web-en-windows-con-wsl2-2k3b</guid>
      <description>&lt;p&gt;Por mucho tiempo desarrollar o programar desde Windows era algo casi impensable, la falta de una consola de comandos bash, un sistema de archivos tosco sumado a otros factores hacían que los programadores rápidamente se cambiaran a un SO de tipo Unix como Linux o MacOS. Pero este año los cambios que ha traído Microsoft con WSL en las últimas versiones de Windows 10 pueden hacer que esto empiece a cambiar.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/rjchirinos/setting-a-webdev-coding-environment-for-windows-users-with-wsl2-445e"&gt;Read this in English&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Contenido
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🔍 ¿Qué es WSL?
&lt;/li&gt;
&lt;li&gt;⚙  Instalar y configurar WSL
&lt;/li&gt;
&lt;li&gt;🔧 Configurar Zsh y Oh-my-zsh
&lt;/li&gt;
&lt;li&gt;👩‍💻 Instalar Node.js y NPM
&lt;/li&gt;
&lt;li&gt;📜 Editor de Código
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🔍 ¿Qué es WSL? &lt;a&gt;&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;Las siglas WSL vienen del inglés "Windows Subsystem for Linux" y básicamente eso es WSL, un subsistema que te permite correr una distribución minificada de un sistema operativo Linux dentro de tu Windows. WSL2, la versión más reciente de WSL funciona con la tecnología Hyper-V, lo cual te permite correr el kernel completo de Linux con un menor consumo de recursos que el que involucraría una maquina virtual convencional.&lt;/p&gt;

&lt;p&gt;Con WSL tienes acceso a una consola de comandos bash (o zsh), al sistema de archivos de Linux y a casi todas las herramientas que una distro de Linux podría ofrecerte para desarrollar.&lt;/p&gt;

&lt;h2&gt;
  
  
  ⚙ Instalar y Configurar WSL &lt;a&gt;&lt;/a&gt;
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Preparando Windows
&lt;/h3&gt;

&lt;p&gt;Lo primero que debes hacer es &lt;strong&gt;asegurarte de que tu versión de Windows esté actualizada&lt;/strong&gt; y que pueda soportar WSL2. Para esto debes dirigirte al Centro de Configuraciones de Windows, al que puedes acceder presionando al mismo tiempo la tecla Windows y la tecla i de tu teclado [Win + i].&lt;/p&gt;

&lt;p&gt;Una vez dentro del Centro de Configuraciones debes dirigirte a la sección de Actualizaciones y Seguridad y allí hacer click en "Buscar Actualizaciones". Cuando ya estén instaladas todas las actualizaciones y tu sistema operativo esté up-to-date podrás habilitar WSL en tu sistema&lt;/p&gt;

&lt;h3&gt;
  
  
  Habilitando WSL
&lt;/h3&gt;

&lt;p&gt;Para habilitar WSL deberás acceder al menú de características de Windows, lo puedes hacer usando la funcionalidad de búsqueda del &lt;em&gt;Menú de Inicio&lt;/em&gt; y escribiendo "Activar o desactivar las características de Windows" y una vez allí asegurate de tildar las opciones "Plataforma de Máquina Virtual" y "Subsistema de Windows para Linux" y destildar la opción "Plataforma de Hipervisor de Windows". Luego de aceptar estas configuraciones tu PC va a reiniciarse y a configurarse con las nuevas características.&lt;/p&gt;

&lt;p&gt;Una vez reiniciada abre la Powershell de Windows y corre el siguiente comando para setear WSL en la version 2 por defecto&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;wsl &lt;span class="nt"&gt;--set-default-version&lt;/span&gt; 2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Instalando Ubuntu y la Terminal de Windows
&lt;/h3&gt;

&lt;p&gt;En la tienda de Microsoft debes &lt;strong&gt;buscar e instalar la ultima versión de Ubuntu LTS&lt;/strong&gt; que al momento de escrito este post es la versión 20.04, luego estando en la tienda debes buscar e instalar también Windows Terminal, un emulador de terminal bastante potente creado por Microsoft y con el cual podrás acceder a tu consola de Ubuntu fácilmente.&lt;/p&gt;

&lt;p&gt;Una vez instalado todo accederemos a nuestra consola bash de Ubuntu abriendo la terminal de Windows que por defecto debe abrirse con su perfil de CMD, en la barra de pestañas de la terminal podrás acceder al menú (la pestañita con flecha hacia abajo) y seleccionar tu versión de Ubuntu.&lt;/p&gt;

&lt;h3&gt;
  
  
  Configurando Ubuntu
&lt;/h3&gt;

&lt;p&gt;Si quieres que al abrir la terminal se cargue Ubuntu por defecto deberás acceder a "Configuración" en el menú de la terminal, se abrirá un archivo de texto desde el cual podrás ver una lista de perfiles y sus configuraciones. &lt;/p&gt;

&lt;p&gt;Cada perfil tiene un id en el campo "guid", a su vez al principio del archivo encontrarás un campo con nombre &lt;em&gt;"defaultProfile"&lt;/em&gt;, deberás reemplazar el valor de este campo por el guid del perfil de Ubuntu, guardar el archivo y al reiniciar la terminal esta se abrirá por defecto en la consola de Ubuntu.&lt;/p&gt;

&lt;p&gt;Una vez dentro de la consola de Ubuntu te pedirá que asignes un nombre de usuario y una contraseña para tu sistema operativo.&lt;/p&gt;

&lt;p&gt;Otro paso fundamental es hacer que la terminal abra por defecto en el home de tu sistema de archivos de Ubuntu (WSL funciona mejor dentro del sistema de archivos de Linux) para esto debes editar tu archivo de configuración bash. En la terminal ejecuta el comando &lt;code&gt;nano ~/.bashrc&lt;/code&gt; y al final del archivo agrega una linea que diga &lt;code&gt;cd ~&lt;/code&gt;, guarda el archivo con [Control + O] y reinicia la terminal.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔧 Configurar Zsh y Oh-my-zsh &lt;a&gt;&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;Este paso es completamente opcional pero súper recomendado. Zsh es una shell para sistemas de tipo Unix al igual que bash, pero con un montón de funcionalidades. Básicamente un bash con esteroides. Con Zsh y Oh-my-zsh podrás correr todos los comandos que usas en bash normalmente pero además podrás agregarle un montón de plugins, temas y funcionalidades, lo que hará subir de nivel tu experiencia con la terminal.&lt;/p&gt;

&lt;p&gt;Para instalar Zsh y Oh-My-Zsh debes correr los siguientes comandos en la terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;zsh
&lt;span class="nv"&gt;$ &lt;/span&gt;sh &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Se te preguntará si quieres correr Zsh por defecto a lo que debes responder que sí. Luego de eso podrás reiniciar tu terminal y automáticamente estarás corriendo en Zsh en vez de bash.&lt;/p&gt;

&lt;p&gt;Igual que en bash, en zsh deberás tocar el archivo de configuración para que este inicie en el home de Ubuntu, para esto tendrás que correr en la terminal el comando &lt;code&gt;nano ~/.zshrc&lt;/code&gt; y agregar nuevamente una fila que diga &lt;code&gt;cd ~&lt;/code&gt; al final del archivo, guarda con [Control + O] y al reiniciar la terminal deberías estar en el home de Ubuntu.&lt;/p&gt;

&lt;p&gt;Desde el archivo de configuración de Zsh podrás también seleccionar el tema y los plugins que quieras tener. Yo personalmente uso:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Git: muestra en que rama estás.&lt;/li&gt;
&lt;li&gt;Z: útil para moverte entre tus archivos fácilmente.&lt;/li&gt;
&lt;li&gt;Zsh-suggestions: te muestra sugerencias de comandos basado en los que usas normalmente.&lt;/li&gt;
&lt;li&gt;Zsh-nvm: de esté les hablaré más adelante.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  👩‍💻 Instalar Node.js y NPM &lt;a&gt;&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;La forma más fácil de instalar alguna versión de Node.js es a través de NVM que es un manejador de versiones para Node, con el cual podrás descargar e instalar varias versiones de Node y saltar entre ellas.&lt;/p&gt;

&lt;p&gt;Para descargar la última versión de Node estable deberás descargar NVM he instalar la version latest desde allí:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-o-&lt;/span&gt; https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash
nvm &lt;span class="nb"&gt;install &lt;/span&gt;node &lt;span class="c"&gt;# esto descargara la ultima versión estable&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Si por el contrario quieres descargar una versión especifica, como la 6.14.4 puedes correr:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nvm &lt;span class="nb"&gt;install &lt;/span&gt;6.14.4 &lt;span class="c"&gt;# o 10.10.0, 8.9.1, etc&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Luego de esto podrás correr &lt;code&gt;node --version&lt;/code&gt; y &lt;code&gt;npm --version&lt;/code&gt; para chequear que tu versión de Node y NPM se hayan instalado correctamente.&lt;/p&gt;

&lt;h3&gt;
  
  
  Paso adicional si usas ZSH &lt;a&gt;&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;Muchas veces NVM no carga por defecto al abrir la consola de Zsh, esto se puede solucionar con un plugin de Oh-my-zsh llamado zsh-nvm. Para instalarlo basta con abrir el archivo de configuración de zsh haciendo &lt;code&gt;nano ~/.zshrc&lt;/code&gt; y buscando la fila de plugins, que debería verse así: &lt;code&gt;plugins=(git)&lt;/code&gt;, debes agregar el nombre del plugin a instalar (en nuestro caso zsh-nvm) al lado de los ya listados.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;plugins&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;git zsh-nvm&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Al guardar y reiniciar la terminal, NVM, Node y NPM deberían funcionar correctamente.&lt;/p&gt;

&lt;h2&gt;
  
  
  📜 Editor de Código &lt;a&gt;&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;Para este caso y por norma general recomiendo usar Visual Studio Code como editor de código, es un editor liviano y al mismo tiempo lo suficientemente potente para la mayoría de las tareas de desarrollo, además es bastante personalizable.&lt;/p&gt;

&lt;p&gt;Descargaremos VS Code para Windows desde su &lt;a href="https://code.visualstudio.com/Download"&gt;pagina oficial&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Una vez en VS Code iremos a la pestaña de plugins [Control + Shift + X] y buscaremos e instalaremos la extensión "Remote WSL", esta nos permitirá abrir cualquier directorio o archivo de Ubuntu en Visual Studio Code y usar todas sus funcionalidades.&lt;/p&gt;

&lt;p&gt;Una vez instalada podemos correr &lt;code&gt;code .&lt;/code&gt; en la terminal de Ubuntu desde cualquier directorio y este se abrirá automáticamente en Visual Studio Code.&lt;/p&gt;

&lt;h2&gt;
  
  
  🤟 Para terminar &lt;a&gt;&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;Si completaste todos los pasos ya tendrás listo tu entorno de desarrollo hibrido dentro de Windows, con el cual podrás realizar la mayoría de tareas de programación sin extrañar los SO's de tipo Unix.&lt;/p&gt;

&lt;p&gt;Con este setup no espero convencer a los usuarios fieles de Linux que se cambien a Windows ni mucho menos. Linux sigue teniendo un montón de características especiales que al día de hoy no son alcanzables con Windows. Sin embargo espero que esta guía sirva como opción para aquellas personas que quieran adentrarse en el mundo del desarrollo web y por alguna razón no puedan (o no quieran) cambiarse a Linux.&lt;/p&gt;

&lt;p&gt;Este es el setup que al día de hoy utilizo para desarrollar y trabajar en frontend, principalmente con React, y me ha funcionado bastante bien, por tanto recomiendo que le den una probada si no están listos para cambiarse definitivamente a Linux o a Apple. &lt;/p&gt;

&lt;p&gt;A esta guía pienso sumarle otro post explicando cómo levantar tus contenedores de Docker desde WSL en Windows con Docker Desktop, estén atentos que al subirlo agregaré un link desde acá.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ubuntu</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
