我尝试在 Windows 上安装 NodeJs SerialPort,但每次执行 npm install serialport
时都会遇到以下错误
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe".
**To fix this**
1) install the .NET Framework 2.0 SDK
2) install Microsoft Visual Studio 2005
3) add the location of the component to the system path if it is installed elsewhere.
[C:\[...]\electron-with-express\express-app\node_modules\serialport\build\binding.sln]
我尝试安装 .net Framework 2.0
但问题仍然存在。
最佳答案
您是否安装了 Visual Studio 或其他包含 C++ 编译器的 Microsoft 软件包?
关于node.js - 在 Windows 上运行 NodeJs 串行端口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38983270/