• General

    Upgrade NodeJS in AWS LightSail

    We will discuss how to upgrade NodeJS version in an Amazon LightSail instance. SSH into your AWS LightSail instance. Get the current NodeJS version First get the NodeJS version and where its installed. The above command will display the currently installed node version. Now get the where Node JS is installed This will display the node location. We need this later. Update Package Lists Before installing a new version of Node.js, it’s a good practice to update your package lists. Download and Install Node.js We will install the node version 20.0.1. Change this to version of your choice. The below example commands will be using version 20.0.1 Create a folder…