简体   繁体   English

Lodash和Graceful-fs

[英]Lodash and Graceful-fs

i want to install phonegap in my pc so i can create my first hybrid app. 我想在我的PC中安装phonegap,以便创建第一个混合应用程序。 I used npm install -g phonegap but i always get this error: 我使用npm install -g phonegap但是我总是收到此错误:

C:\\Users\\user\\AppData\\Roaming\\npm\\node_modules\\phonegap\\node_modules\\bufferu til\\build\\binding.sln : error : MSB3411 : Impossible de charger le composant Visual C++ "VCBuild.exe". C:\\ Users \\ user \\ AppData \\ Roaming \\ npm \\ node_modules \\ phonegap \\ node_modules \\ buffer \\ til \\ build \\ binding.sln:错误:MSB3411:不可能使用Visual C ++编写的“ VCBuild.exe”。 Si le composant n'est pas installé, vous devez 1) installer le Kit de développement Microsoft Windows SDK pour Windows Server 2008 et .NET Framework 2.0 3.5, ou 2) installer Visual Studio 2008. gyp ERR! 要进行安装,必须先安装1)安装工具包Microsoft Windows SDK时,请注入Windows Server 2008及.NET Framework 2.0 3.5,或2)安装程序Visual Studio 2008。 build error gyp ERR! 构建错误gyp ERR! stack Error: C:\\Windows\\Microsoft.NET\\Framework\\v3.5\\msbuild.exe failed with exit code: 1 gyp ERR! 堆栈错误: C:\\Windows\\Microsoft.NET\\Framework\\v3.5\\msbuild.exe失败,退出代码:1 C:\\Windows\\Microsoft.NET\\Framework\\v3.5\\msbuild.exe ERR! stack at ChildProcess.onExit (C:\\Users\\user\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\build.js:276:23) gyp ERR! 堆栈在ChildProcess.onExit(C:\\ Users \\ user \\ AppData \\ Roaming \\ npm \\ node_modules \\ npm \\ node_modules \\ node-gyp \\ lib \\ build.js:276:23)gyp ERR! stack at emitTwo (events.js:100:13) gyp ERR! 堆叠在generateTwo(events.js:100:13)gyp ERR! stack at ChildProcess.emit (events.js:185:7) gyp ERR! 堆栈在ChildProcess.emit(events.js:185:7)gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! 堆栈在Process.ChildProcess._handle.onexit(internal / child_process.js:200:12)gyp ERR! System Windows_NT 6.1.7601 gyp ERR! 系统Windows_NT 6.1.7601 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\user\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! 命令“ 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 ERR! CWD C:\\ Users \\ user \\ AppData \\ Roaming \\ npm \\ node_modules \\ phonegap \\ node_modules \\ bufferutil gyp ERR! node -v v5.6.0 gyp ERR! 节点-v v5.6.0 gyp ERR! node-gyp -v v3.2.1 gyp ERR! node-gyp -v v3.2.1 gyp错误! not ok npm WARN install:bufferutil@1.2.1 bufferutil@1.2.1 install: node-gyp rebuild npm WARN install:bufferutil@1.2.1 Exit status 1 不正确npm WARN安装:bufferutil@1.2.1 bufferutil@1.2.1安装: node-gyp rebuild gyp node-gyp rebuild npm WARN安装:bufferutil@1.2.1退出状态1

I'm sorry that the problem shown is in french, and it is written that i must install Microsoft Windows SDK for Windows Server 2008 and .NET Framework 2.0 or 3.5, or install Visual Studio 2008. 很抱歉,显示的问题是法语的,并且写道,我必须为Windows Server 2008和.NET Framework 2.0或3.5安装Microsoft Windows SDK,或者安装Visual Studio 2008。

So i installed the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, but still got the same error + some errors related to Lodash and Graceful-fs' versions that i can't update, but have to be. 因此,我安装了适用于Windows Server 2008和.NET Framework 3.5的Microsoft Windows SDK,但仍然收到相同的错误+一些我无法更新但必须更新的与Lodash和Graceful-fs版本有关的错误。

How can i update Lodash and Graceful-fs and have you guys any idea how to solve thatVCBuild.exe ? 我该如何更新Lodash和Graceful-fs,你们有什么想法如何解决VCBuild.exe吗? I couldn't find a solution on the internet 我在互联网上找不到解决方案

I used npm update -g lodash to update lodash, and npm update -g graceful-fs . 我使用npm update -g lodash来更新lodash,和npm update -g graceful-fs And I think that the -g is important. 而且我认为-g很重要。 Hope it will help. 希望它会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM