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