SHARE
TWEET

Untitled

a guest Jul 17th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top