![]() You will likely need to switch between multiple versions of Node.js based on the needs of different projects you're working on. We recommend using a version manager as versions change very quickly. Install nvm, node.js, and npmīesides choosing whether to install on Windows or WSL, there are additional choices to make when installing Node.js. Install Windows Terminal using the Microsoft Store: By installing via the store, updates are handled automatically. You can also create custom key bindings (shortcut keys for opening or closing tabs, copy+paste, etc.), use the search feature, customize your terminal with themes (color schemes, font styles and sizes, background image/blur/transparency), and more. ![]() Windows Terminal is an improved command line shell that allows you to run multiple tabs so that you can quickly switch between Linux command lines, Windows Command Prompt, PowerShell, Azure CLI, or whatever you prefer to use. To update your distribution, use the command: sudo apt update & sudo apt upgrade. Windows doesn't automatically handle this update. We recommend updating your Linux distribution regularly, including immediately after you install, to ensure you have the most recent packages. Once you have installed WSL 2 and a Linux distribution, open the Linux distribution (it can be found in your Windows start menu) and check the version and codename using the command: lsb_release -dc. These steps will include choosing a Linux distribution (for example, Ubuntu). To enable and install WSL 2, follow the steps in the WSL install documentation. WSL 2 is the most recent version available for Windows and we recommend it for professional Node.js development workflows. This recommendation also applies if you plan to use a Windows Server production environment. I hope you enjoy our tutorial, Let me know incase you encounter any error I would love to answer that.If you are new to developing with Node.js and want to get up and running quickly so that you can learn, install Node.js on Windows. NVM installed, Getting GLIBC and GLIBCXX Error on Linux In case you've encounter errors such as glibc or glibcxx error not found, I got a solution for you pare. To switch to any version installed by nvm. To install the latest stable version, type: nvm install stable For example, to install version v16.2.0, type: nvm install v16.2.0 NVM can install any of these versions available in the list. You will see a long lists of available version up-to the latest. To check the available lists of available node version that you can use. ![]() Then source ~/.bash_profile to set up environment for NVM: source ~/.bash_profile STEP 3 Then paste the code below, then hit crtl + o + enter then ctrl + x to close the file. For example i will be using ~/.bash_profile nano ~/.bash_profile Using nano or vim, open one of the files above. Normally, it was located from these file paths: To do that, use the following cURL or Wget command:Īs of the time of writing, we are using NVM v0.38.0 curl -o- | bashĪfter running the above commands, it's time to add a variable to your bash command. To install or update your NVM, you should run the install script. In this tutorial, I will show you how to install different nodejs version while not messing up you're current server or development setup. Node.js is one of the most popular open-source platforms that you can easily use to build your backend or rest API that can easily scale because it can handle simultaneous connections which supports a non-blocking, event-driven server, due to its single-threaded nature.Īs the team continues doing some upgrades, some of our programs are still stuck in the old version of node.js which sometimes we encounter some issues when we are trying to update from the latest version.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |