![Winfix win7](https://cdn2.cdnme.se/5447227/9-3/18_64e61dfc9606ee7f722fb462.png)
Again, let's use /tmp as our working directory. This this prurpose we'll configure and runs a simple webserver. The best method to test Node.js is actually run an application. Sudo ln -s /usr/local/bin/npm /usr/bin/npm Sudo ln -s /usr/local/lib/node /usr/lib/node If by any chance, your are in the root environment and the previous command returns " -bash: node: command not found", you can fix this by creating the following symbolic links : sudo ln -s /usr/local/bin/node /usr/bin/node You can verify afterwards if the installation was successful by checking the versions of node and npm : this may take a while, especially the compiling part. Unpack and cleanup : tar -xvf node-v4.6.0.tar.gz & rm node-v4.6.0.tar.gz.
![install node js amazon linux install node js amazon linux](https://www.tutorialswebsite.com/wp-content/uploads/2021/03/install-mysql-server-on-aws-amazon-linux-ec2.jpg)
Version is v4.6.0 (which includes npm 2.15.9)
![install node js amazon linux install node js amazon linux](http://blog.teamtreehouse.com/wp-content/uploads/2015/01/nodejs.png)
Install required packages : sudo yum install -y gcc gcc-c++ make openssl-develįor the next steps, use /tmp as the working directory.Make sure our server has the latest packages :.Once the EC2 instance is up-and-running, connect to your server via ssh The following will guide you through the process of installing Node.js on an AWS EC2 instance running Amazon Linux AMI 2016.09 - Release Notesįor this process I'll be using a t2.micro EC2 instance running
![Winfix win7](https://cdn2.cdnme.se/5447227/9-3/18_64e61dfc9606ee7f722fb462.png)