2/05/2019

How to install Node.js and npm on Amazon Linux (CentOS 7) for lambda


npm & node version check
> node --version
> npm --version


install or upgrade npm & node
Change setup_8.x, in case you want to install version 8.x
>curl -sL https://rpm.nodesource.com/setup_10.x | bash -
>yum install nodejs


If you already installed old version npm & node, remove first.
>yum remove -y nodejs npm


I have installed node as 8.x.

Enjoy!


No comments:

Post a Comment