…… To compile and install native addons from npm you may also need to install build tools: yum install gcc-c++ make or: yum groupinstall ‘Development Tools’
[root@localhost ~]# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed connect to raw.githubusercontent.com:443; 拒绝连接
[root@localhost opt]# cd nvm [root@localhost nvm]# ls nvm-0.37.2 [root@localhost nvm]# cd nvm-0.37.2/ [root@localhost nvm-0.37.2]# ls bash_completion CONTRIBUTING.md Dockerfile install.sh LICENSE.md Makefile nvm-exec nvm.sh package.json README.md ROADMAP.md test update_test_mocks.sh [root@localhost nvm-0.37.2]# ./install.sh => Downloading nvm from git to '/root/.nvm' => 正克隆到 '/root/.nvm'... remote: Enumerating objects: 333, done. remote: Counting objects: 100% (333/333), done. remote: Compressing objects: 100% (283/283), done. remote: Total 333 (delta 38), reused 150 (delta 25), pack-reused 0 接收对象中: 100% (333/333), 177.15 KiB | 0 bytes/s, done. 处理 delta 中: 100% (38/38), done. => Compressing and cleaning up git repository
=> Appending nvm source string to /root/.bashrc => Appending bash_completion source string to /root/.bashrc => Close and reopen your terminal to start using nvm or run the following to use it now: