0和MSBUILD错误MSB3428

0和MSBUILD错误MSB3428

本文介绍了安装量角器2.0和MSBUILD错误MSB3428的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 8盒子上安装Protractor 2.0.0仍然有问题(这里的第一个问题:请参阅).npm install -g量角器的错误如下:

I still have problem with the Protractor 2.0.0 installation on my Windows 8 box (first problem here : see How to have protractor reliable results? and Cannot install Protractor 2.0.0 : ENOENT in bufferutil while node-gyp rebuild).The error at npm install -g protractor is the following :

$ npm install -g protractor
npm http GET https://registry.npmjs.org/protractor
npm http 304 https://registry.npmjs.org/protractor
npm http GET https://registry.npmjs.org/jasmine
npm http GET https://registry.npmjs.org/jasminewd2
npm http GET https://registry.npmjs.org/minijasminenode
...
npm http 304 https://registry.npmjs.org/brace-expansion

> [email protected] install C:\Users\Jean-Marc\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\node_modules\ws\node_modules\bufferutil
> node-gyp rebuild


C:\Users\Jean-Marc\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\node_modules\ws\node_modules\bufferutil {git}
{lamb} node "d:\Developpement\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp http GET http://nodejs.org/dist/v0.10.28/node-v0.10.28.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.28/node-v0.10.28.tar.gz
gyp http GET http://nodejs.org/dist/v0.10.28/SHASUMS.txt
gyp http GET http://nodejs.org/dist/v0.10.28/SHASUMS.txt
gyp http GET http://nodejs.org/dist/v0.10.28/node.lib
gyp http GET http://nodejs.org/dist/v0.10.28/x64/node.lib
gyp http GET http://nodejs.org/dist/v0.10.28/node.lib
gyp http GET http://nodejs.org/dist/v0.10.28/x64/node.lib
gyp http 200 http://nodejs.org/dist/v0.10.28/SHASUMS.txt
gyp http 200 http://nodejs.org/dist/v0.10.28/SHASUMS.txt
gyp http 200 http://nodejs.org/dist/v0.10.28/node.lib
gyp http 200 http://nodejs.org/dist/v0.10.28/x64/node.lib
gyp http 200 http://nodejs.org/dist/v0.10.28/node.lib
gyp http 200 http://nodejs.org/dist/v0.10.28/x64/node.lib
Génération des projets individuellement dans cette solution. Pour activer la génération en parallèle, ajoutez le commutateur "/m".
MSBUILD : error MSB3428: Impossible de charger le composant Visual C++ "VCBuild.exe". Pour corriger le problème, vous devez 1) installer le Kit de développement .NET Framework 2.0 SDK, 2) installer Microsoft Visual Studio 2005 ou 3) ajou ter l'emplacement du composant au chemin d'accès système, s'il est installé ailleurs.  [C:\Users\Jean-Marc\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\node_modules\ws\node_modules\bufferutil\build\binding. sln]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (d:\Developpement\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:807:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "d:\\Developpement\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Jean-Marc\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\node_modules\ws\node_modules\bufferutil
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
npm http GET https://registry.npmjs.org/concat-map
npm http GET https://registry.npmjs.org/balanced-match
npm http 304 https://registry.npmjs.org/concat-map
npm http 304 https://registry.npmjs.org/balanced-match

位于路径C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ msbuild.exe的msbuild.exe存在并且可以运行,但是在运行时失败,我不知道为什么.

The msbuild.exe at path C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe exists and is runnable but it fails at run and I don't figure out why.

任何帮助将不胜感激.

让·马克(Jean-Marc)

Jean-Marc.

PS:我的配置,Windows 8,节点0.10.28,Npm 1.4.9

PS : My config, Windows 8, Node 0.10.28, Npm 1.4.9

推荐答案

我遇到了相同的问题(在Windows 7下).看起来像是Protractor 2.0.0/Windows问题.

I experienced the same problems (under Windows 7). It looks like a Protractor 2.0.0/Windows issue.

如果您不明确需要Protractor 2.0.0版,请尝试使用"npm install -g [email protected]"安装以前的版本(1.8.0)

If you do not explicitly need Protractor version 2.0.0, try installing the previous version (1.8.0) with 'npm install -g [email protected]'

这篇关于安装量角器2.0和MSBUILD错误MSB3428的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 03:21