Then you can use the compatible version on other machines of your teammates. nvmrc and you should create it in the root directory of your project. In the Node.js project, you can store the version of Node.js compatible with that in a file, they called it. Or use the latest version nvm use node Uninstall a Node.js versionįinally, If you want to uninstall a version of Node.js, you can use uninstall subcommand for that.įirst, you need to switch to another version with use then you can uninstall that. With this subcommand, you can load Node.js by version number or -lts flag. If you want to load a specific version, use use subcommand. Now you install some versions of Node.js on your machine So you can see the list of installed versions with list or ls subcommand. nvm install node Load a specific version of Node.js Or you can install the latest version with node instead of version number. If you want to install the LTS version you can use -lts instead of version number. You can install a specific version by nvm with install subcommand. Install a version of Node.jsįirst, you can get the list of available versions by list-remote or ls-remote subcommand. We want to choose some essential subcommands and explain them. Nvm has a lot of subcommands such as install, use, uninstall, and more. Now you need to close and reopen the terminal to load nvm, then check and verify your installation nvm -version # 0.38.0 "$NVM_DIR/nvm.sh" # This loads nvm bash_completion
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |