Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Add these lines to .bashrc in WSL to prevent slow shell startup because of NVM
- export NVM_DIR="$HOME/.nvm"
- # add --no-use so that nvm doesn't load node automatically
- [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --no-use # This loads nvm
- [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
- # manually add desired node version to PATH
- NODE_VERSION="v12.6.0"
- export PATH="${PATH}:${NVM_DIR}/versions/node/${NODE_VERSION}/bin"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement