下方截图是mac电脑,从左到右第十个图标是终端图标,第一步:点击终端,打开
第二步:输入
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash
会加载下方代码,不报错:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7750 100 7750 0 0 11660 0 --:--:-- --:--:-- --:--:-- 11671
=> Downloading nvm from git to '/Users/zzk/.nvm'
=> Cloning into '/Users/zzk/.nvm'...
remote: Counting objects: 7039, done.
remote: Total 7039 (delta 0), reused 0 (delta 0), pack-reused 7039
Receiving objects: 100% (7039/7039), 2.14 MiB | 398.00 KiB/s, done.
Resolving deltas: 100% (4415/4415), done.
* (HEAD detached at v0.30.2)