1

我想在我的电脑上安装 phonegap,这样我就可以创建我的第一个混合应用程序。我用过npm install -g phonegap,但我总是得到这个错误:

C:\Users\user\AppData\Roaming\npm\node_modules\phonegap\node_modules\bufferu til\build\binding.sln :错误:MSB3411 :Impossible de Charger le composant Visual C++“VCBuild.exe”。Si le composant n'est pas installé, vous devez 1) 安装程序开发套件 Microsoft Windows SDK 为 Windows Server 2008 和 .NET Framework 2.0 3.5, ou 2) 安装程序 Visual Studio 2008.gyp ERR!构建错误 gyp ERR!堆栈错误:C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe退出代码失败:1 gyp ERR!堆栈在 ChildProcess.onExit (C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23) gyp ERR!堆栈在 emitTwo (events.js:100:13) gyp ERR!ChildProcess.emit (events.js:185:7) 的堆栈 gyp ERR!堆栈在 Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR!系统 Windows_NT 6.1.7601 gyp 错误!命令 "C:\Program Files\nodejs\node.exe" "C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "重建" gyp呃!cwd C:\Users\user\AppData\Roaming\npm\node_modules\phonegap\node_modules\bufferutil gyp 错误!节点 -v v5.6.0 gyp 错误!节点-gyp -v v3.2.1 gyp 错误!不行 npm WARN install:bufferutil@1.2.1 bufferutil@1.2.1 install:node-gyp rebuild npm WARN install:bufferutil@1.2.1 退出状态 1

很抱歉,显示的问题是法语的,上面写着我必须为 Windows Server 2008 和 .NET Framework 2.0 或 3.5 安装 Microsoft Windows SDK,或者安装 Visual Studio 2008。

所以我安装了适用于 Windows Server 2008 和 .NET Framework 3.5 的 Microsoft Windows SDK,但仍然出现相同的错误 + 一些与 Lodash 和 Graceful-fs 版本相关的错误,我无法更新,但必须更新。

我如何更新 Lodash 和 Graceful-fs,你们知道如何解决 thatVCBuild.exe 吗?我在互联网上找不到解决方案

4

1 回答 1

0

我曾经npm update -g lodash更新 lodash 和npm update -g graceful-fs. 我认为这-g很重要。希望它会有所帮助。

于 2016-02-24T11:22:08.107 回答