如题
11 回复
@Ricardo-Li @cuidezhu @alsotang @yorkie @jysperm 问题已经解决,学nodejs没几天,学校万恶校园网linux没客户端,在windows下折腾,昨天查好久应该是没装Windows SDK编译不过去,后来装了Microsoft .NET Framework SDK v2.0 (64bit),把vcbuild.exe加到环境变量后,题目那个错误没了,又报两个错误(error MSB6006: “VCBuild.exe”已退出,代码为 -1 和 Cannot open include file: 'cstdlib’:), 安装 npm install node-gyp -g npm install bcrypt -g 均失败 搜搜有人说装vs2012。。。。。。那么大的东东,顿时蛋疼失去折腾windows的勇气,于是放弃windows折腾, 跪求室友给用电脑开wifi(室友最后勉强答应给10K小水管),我也是各种悲伤, 进Linux后一切顺利基本没遇到什么问题,以后有问题再来请教 github均已加关注,谢谢各位了
我也碰到这个问题,虽然问题已解决,这里粘贴一下官方的提示(windows需要装一堆东西lol):
You will also need to install:
On Unix:
* python (v2.7 recommended, v3.x.x is not supported)
* make
* A proper C/C++ compiler toolchain, like GCC
On Windows:
* Python (v2.7.3 recommended, v3.x.x is not supported)
Windows XP/Vista/7:
* Microsoft Visual Studio C++ 2010 (Express version works well)
* For 64-bit builds of node and native modules you will also need the Windows 7 64-bit SDK
* If the install fails, try uninstalling any C++ 2010 x64&x86 Redistributable that you have installed first.
* If you get errors that the 64-bit compilers are not installed you may also need the compiler update for the Windows SDK 7.1
Windows 7/8:
* Microsoft Visual Studio C++ 2012 for Windows Desktop (Express version works well)