离线安装node环境在下面链接中找到需要的版本下载
https://nodejs.org/dist/
比如安装12.17.0版本:
这里是root用户的主目录(/root)下进行操作的,
12345678910111213141516# 下载指定版本wget https://nodejs.org/dist/v12.17.0/node-v12.17.0-linux-x64.tar.xz# 解压tar xf node-v12.17.0-linux-x64.tar.xz# 进入解压目录cd node-v12.17.0-linux-x64/# 执行node命令 查看版本./bin/node -vv12.17.0# 建立软连接 ln -s 源文件路径 软连接路径ln -s /root/node-v12.17.0-linux-x64/bin/node /usr/local/bin/ln -s /root/node-v12.17.0-linux-x64/bin/npm /usr/local/bin/# 如果安装的cnpm或者其他(比如vue),需要再次建立软连接ln -s /root/ ...
git基础Git远程操作详解
git设置用户名和邮箱12345678910# 设置用户名和邮箱git config --global user.name "username"git config --global user.email "useremail"# 查看用户名和邮箱git config user.namegit config user.email# 查看其它配置git config --list
参考:git配置用户名和邮箱
git设置代理123456789101112131415161718# 设置当前代理git config http.proxy http://127.0.0.1:7890# 设置全局代理(我在用的)git config --global http.proxy http://127.0.0.1:7890git config --global https.proxy http://127.0.0.1:7890# 取消当前代理git config --unset http.proxy# 取消全局代理git confi ...