Difference between revisions of "Install node-js"
(Created page with "=== Node.js installation instructions for Linux === * Information about this installation procedure (tested on CentOS Linux) https://github.com/nodesource/distributions#rpmins...") |
(No difference)
|
Latest revision as of 12:36, 21 May 2021
Node.js installation instructions for Linux
- Information about this installation procedure (tested on CentOS Linux)
https://github.com/nodesource/distributions#rpminstall
- Check if node.js is installed
node -v
- If it is not installed, install it:
sudo su -l root
curl -sL https://rpm.nodesource.com/setup_16.x | bash -
exit
sudo yum install -y nodejs
# install build tools
sudo yum install -y gcc-c++ make
- Check if node.js is installed
node -v
This should report a node version like: v15.8.0 or newer.
- Notes about the installation:
- yarn: not installed
- To update npm, just re-run the installation procedure for Node.js