在Windows

时间:2016-08-16 19:47:16

标签: node.js visual-studio serial-port

我正在尝试在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,但问题仍然存在。

1 个答案:

答案 0 :(得分:1)

您是否安装了Visual Studio或其他包含C ++编译器的Microsoft软件包?

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