- Node.js应用开发
- 唐小燕 刘洪武主编
- 352字
- 2025-02-08 17:20:21
1.2.2 安装Node.js
1.安装Node. js环境
以 Node-v14.15.3-x64.msi 的安装为例,双击安装包,按照安装提示采用默认安装即可。安装过程如图1-2所示,单击“Next”按钮。
勾选复选框,接受安装协议,然后单击“Next”按钮,如图1-3所示。

图1-2 Node.js安装

图1-3 Node.js安装协议
设置安装路径,然后单击“Next”按钮,如图1-4所示。单击“Next”按钮,进入下一步,如图1-5所示。

图1-4 Node.js安装目录

图1-5 Node.js安装内容
勾选复选框,自动安装必需的工具,然后单击“Next”按钮,如图1-6所示。单击“lnstall”按钮进行安装,如图1-7所示。直到安装完成,如图1-8所示。安装完成,单击“Finish”按钮, Node.js运行环境就安装完成了,如图1-9所示。
2.测试Node. js环境
按下<Win+R>组合键,输入cmd,然后按<Enter>键,将打开CMD窗口,输入node –v后,若能显示当前Node.js的版本号,说明Node.js安装成功,如图1-10所示。

图1-6 Node.js安装必要的工具

图1-7 Node.js准备安装

图1-8 Node.js安装进度

图1-9 Node.js安装完成

图1-10 Node.js安装测试