标签:let amp ons https home 添加 bashrc nod 解决
nvm
在安装的时候,需要在 ~/.bashrc
(如果你的终端用的是bash
)或者~/.zshrc
(如果你的终端用的是zsh
) 中添加:export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
export NVM_DIR="$HOME/.nvm"
nvm() { . "$NVM_DIR/nvm.sh" ; nvm $@ ; }
export PATH=$HOME/.nvm/versions/node/v12.16.2/bin/:$PATH
参考博客:http://imushan.com/2016/07/29/js/tools/解决nvm导致终端启动慢的问题/
参考博客:https://www.jianshu.com/p/e1598eb2df8e
标签:let amp ons https home 添加 bashrc nod 解决
原文地址:https://www.cnblogs.com/nayek/p/13296696.html