#Amazon linux install nvm windows
You can also add other Linux-specific tools all while using Windows as your base operating system.
#Amazon linux install nvm code
We will further tailor your development environment on Amazon Linux 2 with the AWS Toolkit for Visual Studio Code and the SAM CLI to provide a seamless debugging experience as you develop Lambda functions. Additionally, your code executes on a Linux operating system just like it would in AWS Lambda. Using this extension, Visual Studio Code delivers the same development experience as running on Windows, including IntelliSense, code navigation, and live debugging. In this blog post, we will be using WSL 2 to run the Amazon Linux 2 distribution and leverage the Visual Studio Code Remote – WSL extension to use Amazon Linux 2 for your development environment. See the WSL 2 system requirements to determine if your system is compatible. Both the WSL Linux kernel and VM are managed for you, providing a similar user experience as WSL 1 with additional benefits.
#Amazon linux install nvm full
WSL 2 provides full system call compatibility by running the Linux kernel inside a lightweight utility virtual machine (VM). The Windows Subsystem for Linux (WSL) lets users run Linux environment directly on Windows without the need of a traditional virtual machine or dual-booting.
![amazon linux install nvm amazon linux install nvm](https://res.cloudinary.com/practicaldev/image/fetch/s--YqEHnaa1--/c_imagga_scale,f_auto,fl_progressive,h_900,q_auto,w_1600/https://thepracticaldev.s3.amazonaws.com/i/3nfsfhma99ewgoa5crct.jpeg)
The graphic below shows the steps we will take during the Walkthrough section of this post:
![amazon linux install nvm amazon linux install nvm](https://www.michaelfasani.com/static/4870befb7d70b68db7d4673d48934eb3/5ebd7/amazon-linux-2.png)
Finally, the Visual Studio Code Server running inside of the WSL2 and has the AWS Toolkit for Visual Studio Code Extension installed. Starting with the developer at the top, we then head down several layers – the developer’s machine that is running Windows, Visual Studio Code that is running on the Windows instance, followed by the Linux VM (WSL2) that is also running on the Windows instance.
![amazon linux install nvm amazon linux install nvm](https://tecadmin.net/wp-content/uploads/2017/04/tecrahul.png)
The following diagram depicts the overall solution. We are going to use the WSL 2 because as opposed to the WSL 1, which could not run the Docker Engine directly inside of the WSL, the WSL 2 is able to run the Docker Engine, thanks to it’s implementation of a real Linux kernel inside a lightweight virtual machine (VM). This blog post will walk you through the steps required to set up VS Code to use the WSL 2 and AL2. On the developer side of the solution, VS Code combines the simplicity of a source code editor with developer-friendly features such as IntelliSense or code completion and debugging.
![amazon linux install nvm amazon linux install nvm](https://miro.medium.com/max/750/1*kBe12GxeBgWGmpi0jkAzWQ.png)
Targeting AL2 allows a developer to gain the benefits associated with AL2 – support for the latest EC2 features as well as better performing workloads due to the tuned Linux kernel. When a developer needs to target Amazon Linux 2 (AL2) to run their code but they only have access to a Windows development environment, they can use the Windows Subsystem for Linux (WSL) and Visual Studio Code (VS Code) to accomplish that.