Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

第 23 章 Node.js 安装

目录

23.1. 24.11.1
23.2. Ubuntu
23.3. Ubuntu Node.js 9.x
23.4. CentOS
23.5. Mac
23.6. npm -- node package manager
23.6.1. mirror
23.6.2. link
23.7. Yarn
23.7.1. npm 安装 yarn
23.7.2. Ubuntu
23.7.3. CentOS
23.7.4. CentOS 8 Stream
23.7.5. 安装
23.8. pm2
23.8.1. 启动进程
23.8.2. 停止程序运行
23.8.3. 查看进程列表
23.8.4. 查看启动进程的详细信息
23.8.5. 系统资源监控
23.8.6. 监控接口
23.8.7. logs
23.8.8. 设置开机启动
23.9. Type
23.9.1. String
23.9.2. Number
23.9.3. BigNumber
23.10. Loop
23.10.1. for json map
23.10.2. forEach
23.11. 数据结构
23.11.1. set
23.11.2. map
http://nodejs.org/

23.1. 24.11.1

		
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash

# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"

# Download and install Node.js:
nvm install 24

# Verify the Node.js version:
node -v # Should print "v24.11.1".

# Verify npm version:
npm -v # Should print "11.6.2".