我正在运行npm来安装msnodesql,一个用于sql服务器驱动程序的npm库。我正在Windows Server 2012盒子上安装它。NPM安装错误 - Msnodesql
我已经安装了Visual C++ 2010,node-gyp和Python 2.7.x.x作为依赖关系,并且所有这些安装都已成功完成。
当我运行NPM安装msnodesql,我得到一个大红色的错误:
(x86)\MSBuild\Microsoft.Cpp\v4.0\Miscrosoft.Cpp.InvalidPlatform.Targets(23,7): error MSB8007: The Platform for project 'sqlserver.vcxproj' is invalid. Platform='x64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Platform that doesn't exist for this project.
我的箱子是64位。在这方面根本没有经验,所以虽然看起来像一个平台错误,但我真的不知道该怎么做。
帮助!
是否为你工作? – gjw80