All commands here will be run using the Ubuntu CLI/terminal. You can check the version of Node.js using the following command. To get the latest versions, we can use either nodesource or nvm (node version manager). 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 Im having trouble installing nodejs and npm on my newly installed WSL2. However, the steps mentioned here will work once they publish packages. Install Node.js and npm from the Ubuntu repository At the time of writing, the Node.js version included in the Ubuntu 20.04 repositories is 10.19. At the time of writing the post, NodeSource is yet to offer Node.js packages for Ubuntu 22.o4.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |