Centos安装Node.js
Centos安装Node.js
1.下载Node.js
2.新建文件夹
1 | cd /usr/local/ |
3.解压node.js
我上传到了/root目录,其他目录也是可以的
1 | tar -xJvf /root/node-v14.16.1-linux-x64.tar.xz -C ./ |
4.环境变量
编辑~/.bash_profile文件
1 | vim ~/.bash_profile |
末尾追加
1 | Node.js |
刷新
1 | source ~/.bash_profile |

本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 CodeLorin's Blog!
评论





本站已经全站启用pjax


