![]() Suppose you want to install Node.js as a runtime for deploying or hosting any Node.js application. You can check the version of Node.js using the following command. In that case, you should use to install Node.js from the NodeSource repository, but if you are a developer and wanted to create a development environment for Node.js application development, prefer to go with NVM script to install Node.js. Node.js 18.x (Current Version) nvm install nodeĪpart from installing Node.js with NVM, it also helps you manage Node.js installation. Then, to start using nvm, close and reopen your terminal or run the following command to load the nvm to your current session. It helps us in installing Node.js and switching between different versions.įirst, use the bash script to install nvm on your system. NVM (Node Version Manager) is a version manager for Node.js. ![]() ![]() Node.js 18.x (Current Version) wget -qO- | sudo -E bashĪfter adding the NodeSource repository to your system, install the Node.js and NPM using the apt command. Node.js 16.x (LTS) wget -qO- | sudo -E bash However, the steps mentioned here will work once they publish packages. At the time of writing the post, NodeSource is yet to offer Node.js packages for Ubuntu 22.o4.
0 Comments
Leave a Reply. |