Install nodejs:
Update Yum repository for latest release:
# yum install -y gcc-c++ make
# curl -sL https://rpm.nodesource.com/setup_12.x | sudo -E bash -
Update Yum repository for stable release:
# yum install -y gcc-c++ make
# curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash -
Install nodejs:
# yum install nodejs
Install Yarn:
Yarn is an advanced package management software for Node.js applications. It is a fast, secure, and reliable alternative that any other Nodejs package manager’s.
# curl -sL https://dl.yarnpkg.com/rpm/yarn.repo -o /etc/yum.repos.d/yarn.repo
# yum install yarn
Install dependency:
From directory /mysql/admin/scripts/nodejs execute following to install dependency
#npm install
Ref.: https://tecadmin.net/install-latest-nodejs-and-npm-on-centos/
Update Yum repository for latest release:
# yum install -y gcc-c++ make
# curl -sL https://rpm.nodesource.com/setup_12.x | sudo -E bash -
Update Yum repository for stable release:
# yum install -y gcc-c++ make
# curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash -
Install nodejs:
# yum install nodejs
Install Yarn:
Yarn is an advanced package management software for Node.js applications. It is a fast, secure, and reliable alternative that any other Nodejs package manager’s.
# curl -sL https://dl.yarnpkg.com/rpm/yarn.repo -o /etc/yum.repos.d/yarn.repo
# yum install yarn
Install dependency:
From directory /mysql/admin/scripts/nodejs execute following to install dependency
#npm install
Ref.: https://tecadmin.net/install-latest-nodejs-and-npm-on-centos/
Comments
Post a Comment