1、nvm官网:https://github.com/creationix/nvm

2、控制台输入命令:curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash

3、打印信息:

=> Close and reopen your terminal to start using nvm or run the following to use it now:

 

export NVM_DIR="$HOME/.nvm"

[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm

 

4、控制台输入:

 

export NVM_DIR="$HOME/.nvm"

[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm

 

5、控制台输入:nvm

  控制台显示:Node Version Manager

 

即安装nvm成功

 

6、安装版本

 

 

控制台输入:nvm install 0.11.13

 

控制台输出:Downloading and installing node v0.11.13...

 

Downloading https://nodejs.org/dist/v0.11.13/node-v0.11.13-darwin-x64.tar.gz...

 

######################################################################## 100.0%

 

Computing checksum with shasum -a 256

 

Checksums matched!

 

Now using node v0.11.13 (npm v1.4.9)

 

Creating default alias: default -> 0.11.13 (-> v0.11.13)

 

相关文章:

  • 2021-09-29
  • 2021-10-28
  • 2022-12-23
  • 2021-12-05
  • 2021-01-21
  • 2021-11-11
猜你喜欢
  • 2021-09-24
  • 2021-11-06
  • 2022-12-23
  • 2021-11-10
  • 2021-07-10
  • 2021-11-29
  • 2021-11-19
相关资源
相似解决方案