Also, get a basic understanding of the nvm uses. In this tutorial, you have learned to install nvm on Ubuntu 22.04 LTS (Jammy Jellyfish) Linux system. You can run a Node script with the desired version of node.js using the below command: nvm exec 16.14.0 server.js Conclusion To find the default Node version set for the current user, type: nvm run default -version The selected version will be the currently active version for the current shell only. You can also select a different version for the current session. List available node.js versions for the installation. You can use the following command to list installed versions of the node for the current user. New shells will start with the default version of the node (e.g., nvm alias default). The very first version installed becomes the default. Lastly, to choose which version to use, simply type: nvm use 10.0.0 (except use whatever version you want) That should be all the information you need to use nvm. You can choose any other version to install using the above command. To see what versions that you have installed: nvm list.
0 Comments
Leave a Reply. |