问题描述
当我安装量角器我得到这个错误:
<$p$p><$c$c>C:\Users\andreir\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\node_modules\ws\node_modules\utf-8-validate>node C:\ Program Files文件\ nodejs \ node_modules \故宫\ BIN \节点石膏斌\\ .. \ .. \ node_modules \节点石膏\ BIN \节点gyp.js重建在该溶液中一次一个建立项目。要启用并行构建,请加/ M开关。C:\ Program Files文件(x86)的\的MSBuild \ Microsoft.Cpp \ V4.0 \ Microsoft.Cpp.InvalidPlatform.Targets(23,7):错误MSB8007:平台项目validation.vcxproj是无效的。平台='64'。您可能会看到这条消息,因为你正在试图建立没有一个解决方案文件的项目,并指定了不为这个项目存在非默认的平台。 [C:\Users\andreir\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\node_modules\ws\node_modules\utf-8-validate\build\validation.vcxproj]石膏ERR!建立自己的错误石膏ERR!堆栈错误:'C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \ msbuild.exe`失败,退出code:1石膏ERR!在ChildProcess.onExit堆栈(C:\ Program Files文件\ nodejs \ node_modules \故宫\ node_modules \节点石膏\ lib目录\ build.js:267:23)石膏ERR!堆叠在ChildProcess.emit(events.js:98:17)石膏ERR!堆叠在Process.ChildProcess._handle.onexit(child_process.js:820:12)石膏ERR!系统Windows_NT 6.2.9200石膏ERR!命令节点的C:\\ Program Files文件\\ nodejs \\ node_modules \\ \\故宫\\ node_modules节点石膏\\ \\斌节点gyp.js重建石膏ERR! CWD C:\Users\andreir\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\node_modules\ws\node_modules\utf-8-validate石膏ERR!节点-v v0.10.38石膏ERR!节点石膏-v V1.0.1石膏ERR!不好我不明白的地方的erorr是...
我有(相关):的Windows 8.1 PRO 64,Pyton 2.7.10,VS 2012专业版
这个问题,因为错误的说法,是由于 UTF-8验证汇编
通过的WebSocket
所需的模块通过需要硒的webdriver的
编译器未能找到64项目配置
的平台项目validation.vcxproj是无效的。平台='64'
在此 Github的问题溶液重新安装的VisualStudio和Windows SDK。
总之,这是一个可选的依赖,所以你可以不用它,而你看着办吧,运行
NPM安装--no可选
When I install protractor I get this error:
C:\Users\andreir\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\node_modules\ws\node_modules\utf-8-validate>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform.Targets(23,7): error MSB8007: The Platform for project 'validation.vcxproj' is invalid. Platform='x64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Platform that doesn't exist for this project. [C:\Users\andreir\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\node_modules\ws\node_modules\utf-8-validate\build\validation.vcxproj]
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 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\andreir\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\node_modules\ws\node_modules\utf-8-validate
gyp ERR! node -v v0.10.38
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
I don't understand where the erorr is...
I have (relevant):Windows 8.1 pro x64,Pyton 2.7.10,VS 2012 Pro
The issue, as the error is saying, is due to the compilation of utf-8-validate
module required by WebSocket
required by selenium-webdriver
node_modules\protractor\node_modules\selenium-webdriver\node_modules\ws\node_modules\utf-8-validate
the compiler is failing to find a project configuration for x64
The Platform for project 'validation.vcxproj' is invalid. Platform='x64'
In this Github Issue the solution was reinstalling VisualStudio and Windows SDK.
Anyway this is an optional dependency so you can do without it, while you figure it out, running
npm install --no-optional
这篇关于对故宫的错误安装-g量角器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!