1

我以管理权限启动 CMD,然后:npm install -g ccap

但我收到一个错误:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform
.Targets(23,7): error MSB8007: The Platform for project 'hcaptha.vcxproj' is in
valid.  Platform='x64'. You may be seeing this message because you are trying t
o build a project without a solution file, and have specified a non-default Pla
tform that doesn't exist for this project. [C:\Users\adam\AppData\Roaming\npm\n
ode_modules\ccap\build\hcaptha.vcxproj]
4

1 回答 1

0

找到了一个新的、更有可能的原因。gyp 节点和 Windows x64 存在一些兼容性问题。检查 node-gyp 和 node 的版本并尝试更新。看到这个:https ://github.com/voodootikigod/node-serialport/issues/90#issuecomment-8964116

于 2013-08-14T19:48:22.307 回答