Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. # Add these lines to .bashrc in WSL to prevent slow shell startup because of NVM
  2.  
  3. export NVM_DIR="$HOME/.nvm"
  4. # add --no-use so that nvm doesn't load node automatically
  5. [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --no-use # This loads nvm
  6. [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
  7.  
  8. # manually add desired node version to PATH
  9. NODE_VERSION="v12.6.0"
  10. export PATH="${PATH}:${NVM_DIR}/versions/node/${NODE_VERSION}/bin"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement