npm install -g量角器错误

安德鲁

当我安装量角器时,出现以下错误:

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

我不明白erorr在哪里...

我有(相关):Windows 8.1 pro x64,Python 2.7.10,VS 2012 Pro

尖锐的边缘

就像错误所说的那样,该问题是由于编译utf-8-validate所需模块所致WebSocketselenium-webdriver

node_modules\protractor\node_modules\selenium-webdriver\node_modules\ws\node_modules\utf-8-validate

编译器无法找到x64的项目配置

The Platform for project 'validation.vcxproj' is invalid. Platform='x64'

在此Github问题中,解决方案是重新安装VisualStudio和Windows SDK。

无论如何,这是一个可选的依赖项,因此您可以在运行时不使用它,而无需担心

npm install --no-optional

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

关于“ npm install -g n”的错误

来自分类Dev

npm无法安装量角器或selenium-webdriver-> gyp ERR!建立错误

来自分类Dev

NPM - 尝试为 @types/node 获取元数据时出现量角器错误 404

来自分类Dev

npm install产生大量错误

来自分类Dev

sudo npm install -g npm和sudo apt-get install npm之间的区别

来自分类Dev

Windows中的npm install -g generator-X错误

来自分类Dev

AWS Amazon AMI上的npm install -g bower出现错误

来自分类Dev

执行npm install -g bower时出现EACCESS错误

来自分类Dev

npm install -g react-native-cli - 显示错误

来自分类Dev

npm install 与 npm install <library>

来自分类Dev

相当于npm install -g的Golang

来自分类Dev

'npm install -g'到底做什么?

来自分类Dev

npm install -g是什么意思

来自分类Dev

npm install -g是什么意思

来自分类Dev

package.json与“ npm install%s -g”

来自分类Dev

每次都要运行sudo npm install -g

来自分类Dev

“ npm install -g @ angular / cli”安全吗?

来自分类Dev

npm install -g phonegap不起作用

来自分类Dev

package.json与“ npm install%s -g”

来自分类Dev

在Ubuntu 14.04上进行npm install -g

来自分类Dev

npm install --g gulp-挂起

来自分类Dev

npm install会给出“ npm ERR!代码ENOTFOUND'错误

来自分类Dev

Npm install pomelo错误VC ++ 2010?

来自分类Dev

nodejs npm install socket.io错误

来自分类Dev

运行npm install时出现ENOENT错误

来自分类Dev

OpenMCT的“ npm install”给出很多错误

来自分类Dev

在Windows 7上npm install restify错误?

来自分类Dev

npm install返回syscall生成git错误

来自分类Dev

npm install eslint缺少参数错误