Neurohazard
暮雲煙月,皓首窮經;森羅萬象,如是我聞。

Node.js 与 NVM

wpadmin~November 27, 2018 /System Management

Node.js 与 NVM

基本使用

https://github.com/creationix/nvm

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash


export NVM_DIR="$HOME/.nvm"
# This loads nvm
# 在 terminal 中加载 nvm 
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" 
# This loads nvm bash_completion 
# 读取 nvm 的 bash 自动补全 
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  

基本使用

nvm ls
nvm use 8.0

参考资料

使用nvm和avn自动切换不同的Node.js版本
https://www.jianshu.com/p/a1db0f75866c

Leave a Reply

Your email address will not be published. Required fields are marked *