安装node.js的过程中参考了一些资料,非常感谢那些作者,下面记录一下在windows系统中的整个安装流程,对小白可能有用。
node.js可以在官网下载
https://nodejs.org/en/
(选了那个推荐大部分人安装的低版本,只是因为推荐)
安装路径我自定义了其他盘(默认在C盘,主要不想乱七八糟的东西污染系统盘)
然后就像装游戏一样一路next,会打包安装一些必要的工具,然后中间有一个弹框,很多教程里没有写到,我就找了一下
这个教程里有说到:
https://www.cnblogs.com/luciolu/p/11993802.html
主要是这一段
本机模块工具
//这块是弹窗内容
Tools for Native Modules Optionally install the tools necessary to compile native modules.
Some npm modules need to compiled from C/C++ when installing. If you want to be able to install such modules, some tools(Python 2 and Visual Studio Build Tools) need to be installed.
//下面这段是个复选框
Automatically install the necessary tools. Note that this will also install Chocolatey. The script will pop-up in a new window after the installati