目录
- 1.链接服务器
- [2.找到node 下载地址](#2.找到node 下载地址)
- 3获取链接地址
- 4下载到linux
- 5.解压
- [6.重命名 解压后的文件](#6.重命名 解压后的文件)
- 7.配置环境变量
-
- 7.1复制当前的bin目录
- [7.2vim /etc/profile](#7.2vim /etc/profile)
- 7.3在按下ESC按键
- 8.重启环境变量
- 9.输入node
- 10.npm配置加速镜像
1.链接服务器
2.找到node 下载地址
go
https://nodejs.org/dist/v20.10.0/

3获取链接地址
go
https://nodejs.org/dist/v20.10.0/node-v20.10.0-linux-x64.tar.gz
4下载到linux

5.解压
bash
tar -xzvf node-v20.10.0-linux-x64.tar.gz
6.重命名 解压后的文件
bash
mv node-v20.10.0-linux-x64 node

可以看到先关的指令
7.配置环境变量
7.1复制当前的bin目录
bash
[root@iZ8vb7yfizu74ftyutnwc1Z bin]# pwd
/root/ProgramFile/node/bin
7.2vim /etc/profile
进入之后
输入 i
在最后面加上
bash
export PARH=/root/ProgramFile/node/bin/:$PATH

7.3在按下ESC按键
bash
输入 : w q 退出

8.重启环境变量
bash
source ./etc/profile

9.输入node

bash
ctrl+c 2次退出
10.npm配置加速镜像
下载nrm
bash
npm install nrm -g

bash
nrm ls
bash
nrm use taobao
