ubuntu安装node.js

发布时间:2026/11/6 20:21:11
ubuntu安装node.js
Ubuntu 上建议用 NodeSource 安装 Node.js LTS。以 Node 22 为例curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - sudo apt-get install -y nodejs验证node -vnpm -v