![]() ![]() Update/UpgradeÄ«efore we install NVM, letâs first make sure our operating system (and the included software) is up to date. You donât even need Node.js installed, as you can take care of that task once you have NVM installed. Iâll demonstrate on Ubuntu Server 22.04, which means all youâll need is a running instance of that distribution (or any Debian-based distro) and a user with sudo privileges. Let me show you how to install NVM on Linux. Then it resolves the new version to install from the. With NVM on board, you can easily switch between multiple versions of Node.js on a per-project basis, making certain you have all your bases covered. This will first use nvm version node to identify the current version youre migrating packages from. If your development platform of choice is Linux, you can always turn to the Node Version Manager (aka NVM). That can be a challenge because your operating system might not like the idea of installing more than one version of the language.įortunately, thereâs a way around that. The command above will install NVM version 0.38.0 to your computer. ![]() Optionally specify 32/64bit architecture. Why is this an issue? Sometimes you might need to build an app that works with an older version of Node.js and other times you might need the new features found in more recent iterations. nvm use arch: Switch to use the specified version.However, during your career with Node.js, thereâs one issue you might eventually run into⦠that of having to work with more than one version of Node. ![]() Okay, so it 's not nearly as simple as, say, Python, but it' s also much more flexible, powerful, and usable in a cloud- native world.
0 Comments
Leave a Reply. |