{"id":16430225,"url":"https://github.com/rohya8/nvminstallation","last_synced_at":"2025-02-25T08:18:48.221Z","repository":{"id":101907940,"uuid":"297963110","full_name":"rohya8/NvmInstallation","owner":"rohya8","description":"Node Version Manager (NVM) installation guide on Windows","archived":false,"fork":false,"pushed_at":"2020-09-25T15:57:06.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T22:38:21.341Z","etag":null,"topics":["cheatsheet","javascript","node","nodejs","npm","nvm","programming","windows"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rohya8.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-23T12:30:20.000Z","updated_at":"2020-09-25T15:57:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"0d1f7d3e-3521-4ac6-a13e-8f7344ba968f","html_url":"https://github.com/rohya8/NvmInstallation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohya8%2FNvmInstallation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohya8%2FNvmInstallation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohya8%2FNvmInstallation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohya8%2FNvmInstallation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rohya8","download_url":"https://codeload.github.com/rohya8/NvmInstallation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240628052,"owners_count":19831609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cheatsheet","javascript","node","nodejs","npm","nvm","programming","windows"],"created_at":"2024-10-11T08:26:08.504Z","updated_at":"2025-02-25T08:18:48.194Z","avatar_url":"https://github.com/rohya8.png","language":null,"readme":"# Installation guide for NVM in windows\n **nvm** (Node Version Manager) is a tool used to download and install multiple Node.js versions.\u003cbr /\u003e\n **npm** (Node Package Manager) is a tool that allows you to install javascript packages.\u003cbr /\u003e\n\n### Prerequisite:\n\n Uninstall existing version of node since we won’t be using it anymore\u003cbr /\u003e\n Delete any existing nodejs installation directories.( e.g. “C:\\Program Files\\nodejs” OR C:\\Program Files (x86)\\nodejs ) that might remain. NVM’s generated symlink will not overwrite an existing (even empty) installation directory.\u003cbr /\u003e\n\n Delete the npm install directory at C:\\Users\\[Your User]\\AppData\\Roaming\\npm\u003cbr /\u003e\n We are now ready to install nvm. Download the installer from [Here](https://github.com/coreybutler/nvm/releases) \u003cbr /\u003e\n\n Delete the existence of nvm (C:\\Users\\xxx\\AppData\\Roaming\\nvm), basically, manually delete the nvm dir.\u003cbr /\u003e\n\n To upgrade, run the **new installer**. It will safely overwrite the files it needs to update without touching your node.js installations. Make sure you use the same installation and symlink folder. If you originally installed to the default locations, you just need to click “next” on each window until it finishes.\u003cbr /\u003e\n\n### Installation\n\n 1. Download nvm for Windows\n\n 2. Choose nvm-setup.zip\n\n 3. Unzip \u0026 click on installer.\n\n 4. Check if nvm properly installed, In new command prompt type nvm.\n\n  - Environment variable : \n    Nodejs, Nvm and Npm installation directory path\n\n    - C:\\Program Files\\nodejs  \t                \u003e Nodejs directory path\n    - C:\\Users\\[Your User]\\AppData\\Roaming\\nvm\n    - C:\\Users\\[Your User]\\AppData\\Roaming\\npm\n\n 5. Install node js using nvm : nvm install \u003cversion\u003e : The version can be a node.js version or \"latest\" for the latest stable version\n\n 6. check node version - node -v \n\n 7. (Optional)If you want to install another version of node js - Use STEP 5 with different version.\n\n 8. Check list node js version - nvm list\n\n 9. If you want to use specific node version do - nvm use \u003cversion\u003e\n\n\n### NVM Basic Commands\n\n+ View remote available versions of Node.\n\n  ```sh\n  $ nvm ls-remote\n  ```\n\n+ View local installed versions.\n\n  ```sh\n  $ nvm ls\n  ```\n\n+ Install a specific version.\n\n  ```sh\n  $ nvm install \u003cversion number\u003e\n  ```\n\n+ Switch to a specific version of Node.\n\n  ```sh\n  $ nvm use \u003cversion number\u003e\n  ```\n\n+ Uninstall a specific version.\n\n  ```sh\n  $ nvm uninstall \u003cversion number\u003e\n  ```\n\n+ Displays the current running version of NVM for Windows.\n\n  ```sh\n  $ nvm version \n  ```\n\n### Errors\n  - If you get error like npm/nvm/node not recognized as an internal or external command =\u003e follow step 4\n  \n  - \"nvm use\" doesn't Switch node version =\u003e \n       1. (Workaround) rename \"C:\\Program Files\\nodejs\" to \"C:\\Program Files\\nodejsx\"\n          \u003e Problem persist if nodejs directory exists, since nvm can not change it to a symlink and fails\n       2. Open **command prompt** with administrator privilege, and then you can switch the version.\n       \n  - While executing `nvm install \u003cversion number\u003e` command, error: Could not retrieve ..... =\u003e Try `nvm proxy [url of your proxy server]`\n    \n### Reference Links\n\n* [nvm-windows]\n* [MS DOCS]\n\n[nvm-windows]: https://digitaldrummerj.me/windows-running-multiple-versions-of-node/\n[MS DOCS]: https://docs.microsoft.com/en-us/windows/nodejs/setup-on-windows\n\n\n**Please feel free to contribute to the project,create a pull request**\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohya8%2Fnvminstallation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohya8%2Fnvminstallation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohya8%2Fnvminstallation/lists"}