Videos
Hello gang, I am having issues using Node version manager on windows. I have checked my environmental variables, manually added paths via my bash file, and i used the powershell, command prompt, and git bash. NVM commands work fine but node -v and npm -v will not work at all. Incredibly frustrating as i was in the middle of working on AWS services so this is incredibly counter productive. Any advice?
I should add that i was using the latest version of node up until today without any issues. An application or project i was working on necessitated an older version of Node.js. The Windows support article https://learn.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-windows explains in few details additional processes i could take to resolve the issue so i have been relying on information found on the web. I can send photos of my environmental variables although i am very cautious uploading any information regarding my local machine via a subreddit about programmers learning. Unfortunately not all humans live for the betterment of the human race. If anyone has dealt with this problem. let me know a resource i can delve into or how you resolved the issue.
nvm was designed for Linux. nvmw, which is completely different, broke around node v0.10.30. Try NVM for Windows.
NVM can be used to manage various node version :
Step1: Download NVM for Windows
Step2: Choose nvm-setup.zip
Step3: Unzip & click on installer.
Step4: Check if nvm properly installed, In new command prompt type
nvmStep5: Install node js using nvm :
nvm install <version> : The version can be a node.js version or "latest" for the latest stable versionStep6: check node version -
node -vStep7(Optional)If you want to install another version of node js - Use STEP 5 with different version.
Step8: Check list node js version -
nvm listStep9: If you want to use specific node version do -
nvm use <version>
Repo: https://github.com/ysmood/use-node
No need to setup anything, just run the use-node, then you can use the right node version under your shell.
-
Works the same across Windows, macOS, and Linux.
-
No options, no configs, just run
use-nodeunder your node project. -
Auto-detect the standard engines config recursively from all parent folders.
-
Auto-choose the fastest registry to download node.
-
Auto-cache the node binary.
-
Reports every side-effect it makes on the system, such as where the node is installed.