Nodejs安装与配置--基于Linux系统--RedHat7.9

nodejs安装从未这么简单

1、nodejs版本设置?

curl -fsSL https://rpm.nodesource.com/setup_16.x | sudo bash -

其他版本如下:


* https://rpm.nodesource.com/setup_16.x --- Node.js 16 "Gallium" (deprecated)

* https://rpm.nodesource.com/setup_18.x --- Node.js 18 "Hydrogen" (Maintenance)

* https://rpm.nodesource.com/setup_19.x --- Node.js 19 "Nineteen" (deprecated)

* https://rpm.nodesource.com/setup_20.x --- Node.js 20 LTS "Iron" (recommended)

* https://rpm.nodesource.com/setup_21.x --- Node.js 21 "Iron" (current)

2、初始化nodejs

sudo yum install -y nodejs

3、nodejs版本查询

node -v

npm --v

相关推荐
万敏2 小时前
Vue3 全栈实战第四周:watch、nextTick、性能优化与 keep-alive 实战记录
vue.js·node.js·全栈
濮水大叔1 天前
为什么 AI 最擅长 React/Next.js,却很少看到真正好用的 Next.js 开源项目?
react.js·node.js·next.js
AI行业学习1 天前
Claude Code + cc-switch + Git + Node.js 全套下载+安装+配置完整版
开发语言·git·python·前端框架·node.js·html·notepad++
万亿少女的梦1681 天前
基于微信小程序、Express与MongoDB的校园失物招领系统设计
mongodb·微信小程序·node.js·express·系统设计
AI行业学习1 天前
Claude Code + cc-switch + Git + Node.js 一站式完整安装配置教程【8.3】
git·python·安全·前端框架·node.js·html·notepad++
AI行业学习1 天前
Claude Code + cc-switch + Git + Node.js 一站式完整安装配置教程(2026最新·国内可用版)
人工智能·git·python·安全·node.js·html·notepad++
用户847181054192 天前
从0开始打造自己的个人智能体(一)——Deep Agents js环境配置与对话入门
node.js·agent
减瓦2 天前
从 0.1 到 26:一个运行时的十七年进化史
node.js
晓得迷路了2 天前
栗子前端技术周刊第 140 期 - pnpm、Node 新 API 文档网站、Oxlint...
前端·javascript·node.js
孟陬3 天前
Node.js 测试报告格式一览和自定义 json 格式 `--test-reporter=spec | tap | dot | junit | lcov`
node.js