MSBudi:错误MSB328:无法加载VisualC++组件“VCuBuff.exe”

2024-04-27 00:05:53 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图安装nodejs从现在很长一段时间。我试过在谷歌上搜索,但说真的,我没有任何有效的解决方案。

我的第一个问题是

  1. 为什么Nodejs需要微软可视化组件?

其次,根据谷歌的建议,我尝试了以下几点

  • 安装Visual C++ 2010(变量中的更新路径)但之后 安装时出现了更多错误,包括“MSBUILD:error MSB3428: 无法加载VisualC++组件“VCuBuff.exe”。
  • 已通过https://github.com/TooTallNate/node-gyp删除错误,但仍无法工作。
  • 再次卸载并安装Node js,但没有成功。

我有以下版本

  • 节点js 0.12
  • Python2.7
  • 红宝石1.9.3
  • Windows 7 64位。

当我运行npm-install时,错误显示如下

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 or 3) add the location of the 
component to the system path if it is installed elsewhere. 

我的package.json如下:

{
 "name": "TRest",
 "version": "0.1.0",
 "devDependencies": {
     "grunt": "~0.4.2",
     "grunt-contrib-watch": "~0.5.3",
     "grunt-sass": "~0.11.0",
     "grunt-pixrem": "^0.1.2",
     "grunt-legacssy": "^0.2.0",
     "grunt-contrib-concat": "~0.3.0",
     "grunt-contrib-uglify": "~0.3.2",
     "node-bourbon": "^1.0.0"
  }
}

Tags: installthenode错误js组件errorcontrib
3条回答

通过这样做,您可以告诉npm使用Visual studio 2010。。。

npm install socket.io --msvs_version=2010

将socket.io替换为出现问题的包。

也可以设置npm的全局设置:

npm config set msvs_version 2010 --global

我试图安装Stand循环,并得到这个错误“MSBuff:MebB328:无法加载VisualC++组件”VCuBuff.exe。 我能通过运行这个来解决这个问题。

在windows上查找节点 $npm安装 $哪个节点 cd进入目录后,在目录cd内进入node_modules\npm文件夹,最后: $npm安装node gyp@latest

或者尝试npm install --global --production windows-build-tools

相关问题 更多 >