DEV Community

Discussion on: How to Install Oh My Zsh! on Windows 10 Home Edition

Collapse
 
unlockdep profile image
Dawood Sulaiman Syed

I've encountered an issue. When I run

nvm install --lts

I get an error saying that I don't have it installed even tho I just did the commands all right without errors and I regularly have node installed as I am a we developer.

Collapse
 
vsalbuq profile image
Vinícius Albuquerque

It's kind of difficult to find it out only with the information you gave me...

Have you forgotten the step for adding the path variable to .zshrc, maybe?

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
Enter fullscreen mode Exit fullscreen mode

It may be also that you .zshrc wasn't saved before you tried to run nvm.

Also, if you changed the file structure to remove the mnt/, it may cause some issues.

I hope this helps, but I'm really in the dark here, 😅

Collapse
 
joffreydrummond profile image
Joffrey Drummond

I was having the same issue. If you read the prompt after installing nvm from the repo it says you need to close the terminal or run the below script.

I closed and reopened and nvm installed successfully

I hope this helps!