![]() This completes the installation of NodeJs on Amazon Ec2 Instance.If you have any questions you can comment in the section below. If you are getting “node: command not found” error then your installation is not complete. The Amazon Linux AMI is provided at no additional charge to Amazon EC2 users. ![]() the command node-v will return the version of installation To uninstall the new version, I ran the command sudo yum remove nodejs and it apparently uninstalled NodeJS. Hence I tried to uninstall it and then install version 14.15.5 (which was stable on my local dev). You need to change the path environment variable to test the installation. I had installed version 16.4.2 of NodeJS at the beginning and was giving me compatibilities issues. Testing the installation PATH=$PATH:/home/ec2-user/node This will start the installation of Node server and will take 10 to 15 minutes to complete. The git clone of node js is available in the home path under “node” folder cd node This will install development components that make the installation smooth. sudo yum groupinstall "Development Tools" sudo yum install git coreĪfter installation of git repository start downloading the nodejs git clone git:///joyent/node.gitīefore proceeding to install the node server we need to make sure all the necessary compilers are available. ![]() Node JS cannot be downloaded directly instead you need git to download the node JS package. Lets go ahead and install the Amplify CLI. This will update all the repositories in the system to the latest version. The Amplify Command Line Interface (CLI) is a unified toolchain to create AWS cloud services for your app. Okay! In the ec2 home page click “launch instance” and select Quicklaunch->Amazon Linux 64 bit and complete the steps in providing the security credentials and connect to it. If you’re using EC2 which run Amazon Linux, and you’d like to try Google’s Puppeteer (Chrome Headless), below’s tutorial verified on a EC2 instance run the latest Amazon Linux AMI release.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |