Once you’re set up with the latest version of nvm, installing updated distributions of Node.js is a breeze. The command will output the current nvm version if everything worked. You’ll have to close and re-open the terminal first, but you can verify a successful installation by using command -v nvm. To update to the latest version of nvm, you can get the install script by using cURL: curl -o- | bash Run an update of nvm first, then get the latest packages of Node.js to update your web server environment: sudo apt-get update sudo apt-get install build-essential checkinstall libssl-dev You’ll need a C++ compiler, as well as the build-essential, and the libssl-dev packages. Node Version Manager, or nvm, is far and away the best method for updating Node.js. Update Node.js Using Node Version Manager (nvm) This guide also includes instructions for updating Node.js through binary packages with version-specific references. If extenuating circumstances prevent you from using nvm, you can rely on the resources of Node Package Manager (npm). We value simplicity and effectiveness in systems administration and, for us, the easiest method is to use Node Version Manager (nvm).īefore you start, check which version of Node.js you’re currently using by running node -v in a command line terminal. The exact steps to updating Node.js on a Linux system can vary by distribution, but our recommended methods will work across most versions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |