0

I have installed zsh and oh-my-zsh on WSL following this tutorial. They both work fine but it seems that my previous installs don't work, such as npm.

Does anything else need to be done?

uber
  • 4,163
  • 5
  • 26
  • 55

1 Answers1

1

Duplicate of Adding a new entry to the PATH variable in ZSH

add this line to .zshrc: export PATH=$PATH (add path of npm if not already in $PATH.) source ~/.zshrc

or do one of these: echo -n 'export PATH=~/bin:$PATH' >> ~/.zshrc

echo -n 'export PATH=$HOME/bin:$PATH' >> ~/.zshrc

WSLUser
  • 601
  • 5
  • 10