gpt4 book ai didi

node.js - 在 Windows 上运行 NodeJs 串行端口

转载 作者:太空宇宙 更新时间:2023-11-04 00:36:02 25 4
gpt4 key购买 nike

我尝试在 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 软件包?

阅读这篇文章: Error in installing node.js module using npm

关于node.js - 在 Windows 上运行 NodeJs 串行端口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38983270/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com