1.安装python2.X版本,并手动设置环境变量。注意,一定要2.x版本,3.x版本不行。
2.在git下载libuv最新版
3.下载gyp代码。由于vcbuild.bat中gyp的地址被墙了,需要手动去github上面下载,z libuv根目录运行命令git clone https://github.com/svn2github/gyp.git build/gyp
4.安装gyp.到build/gyp目录打开命令行窗口,运行命令python setup.py build,然后运行命运python setup.py install。
5.在cmd中运行libuv文件夹下的vcbuild.bat