到官网https://nodejs.org/zh-cn/download/下载,选择Macintosh Installer, 如下 2,点击下载的安装包,点击继续开始安装 3,点击继续 4,点击安装,并输入密码