Then install and check the version: # rpm -ivh nodejs-0.8.18-1.x86_64.rpm Now make the nodejs package: # fpm -s dir -t rpm -n nodejs -v 0.8.18 -C /tmp/nodejs/ usr/bin usr/lib To create an RPM package, you can use FPM: # wget You can modify the "configure" file to point to python2.7 in line 1 if necessary. Note that this requires Python 2.6+ to use. Hope you would find above post useful.(cd into extracted folder: ex "cd node-v0.10.3") In this tutorial, we have gone through the steps of how we can uninstall and then install the latest version of nodejs using two methods. Now you should have nvm installed in your environment. nvm install 16ĭownloading and installing node v16. To make sure, you install the latest version go to following link and find out the latest version to install.Ĭheck if you have following in your ~/.bashrc echo 'export NVM_DIR="$HOME/.nvm"' > ~/.bashrc Before we install nvm, make sure to remove the older version of nvm first. There you go we got npm succesfully installed too. When we install nodejs nodejs package manager is automatically installed by yum. Installed: nodejs.x86_64 2:13.7.0-1nodesourceĪs we see above nodejs version 13.7.0 is installed. Lets now install the latest version Node.js v13.x curl -sL | sudo bash. Ok if you see above error that means, nodejs is uninstalled. nodejs -version bash: nodejs: command not found Lets check if the nodejs is removed or not. Lets first uninstall the existing nodejs version which is easy using yum remove command. Lets check the version of latest available on following nodejs site.Īs of writing this post. Lets check ist the version of nodejs installed on the system. If you want to install it first time, skip to next section.Īssuming you have nodejs already installed. Updgrading nodejs involves following two steps. How To Install and Updgrade Nodejs On Linux
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |