Npm install 在Windows中安装@wdio/cucumber framework时出现长时间错误

Npm install 在Windows中安装@wdio/cucumber framework时出现长时间错误,npm-install,webdriver-io,node-gyp,Npm Install,Webdriver Io,Node Gyp,我试图安装@wdio/cucumber framework,但我遇到了一个相当长的错误。我已尝试安装windows构建工具。我还安装了VisualStudio 2019的VisualC++生成工具。 以下是我的输出: ~\source\repos\myapp> npm install @wdio/cucumber-framework npm WARN deprecated cucumber@6.0.5: The npm package has moved to @cucumber/cucu

我试图安装@wdio/cucumber framework,但我遇到了一个相当长的错误。我已尝试安装windows构建工具。我还安装了VisualStudio 2019的VisualC++生成工具。 以下是我的输出:

~\source\repos\myapp> npm install @wdio/cucumber-framework
npm WARN deprecated cucumber@6.0.5: The npm package has moved to @cucumber/cucumber
npm ERR! code 1
npm ERR! path C:\xxxx\source\repos\myapp\node_modules\fibers
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node build.js || nodejs build.js
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@14.15.4 | win32 | x64
npm ERR! gyp info find Python using Python version 3.9.1 found at "C:\xxxx\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe"
npm ERR! gyp info find VS using VS2019 (16.8.30907.101) found at:
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn C:\xxxx\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   'C:\\xxxx\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'msvs',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'C:\\xxxx\\source\\repos\\myapp\\node_modules\\fibers\\build\\config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'C:\\xxxx\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'C:\\xxxx\\AppData\\Local\\node-gyp\\Cache\\14.15.4\\include\\node\\common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=C:\\xxxx\\AppData\\Local\\node-gyp\\Cache\\14.15.4',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=C:\\xxxx\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\xxx\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\14.15.4\\\\<(target_arch)\\\\node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=C:\\xxxx\\source\\repos\\myapp\\node_modules\\fibers',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'C:\\xxxx\\source\\repos\\myapp\\node_modules\\fibers\\build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   'build/binding.sln',
npm ERR! gyp info spawn args   '/clp:Verbosity=minimal',
npm ERR! gyp info spawn args   '/nologo',
npm ERR! gyp info spawn args   '/p:Configuration=Release;Platform=x64'
npm ERR! gyp info spawn args ]
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 3221225477
npm ERR! gyp ERR! stack     at ChildProcess.onExit (C:\xxxx\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19041
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\xxxx\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--release"
npm ERR! gyp ERR! cwd C:\xxxx\source\repos\myapp\node_modules\fibers
npm ERR! gyp ERR! node -v v14.15.4
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
npm ERR! node-gyp exited with code: 1
npm ERR! Please make sure you are using a supported platform and node version. If you
npm ERR! would like to compile fibers on this machine please make sure you have setup your
npm ERR! build environment--
npm ERR! Windows + OS X instructions here: https://github.com/nodejs/node-gyp
npm ERR! Ubuntu users please run: `sudo apt-get install g++ build-essential`
npm ERR! Alpine users please run: `sudo apk add python make g++`
npm ERR! 'nodejs' is not recognized as an internal or external command,
npm ERR! operable program or batch file.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\xxxx\AppData\Local\npm-cache\_logs\2021-02-05T12_32_34_788Z-debug.log
~\source\repos\myapp>npm install@wdio/cucumber framework
npm警告已弃用cucumber@6.0.5:npm包已移动到@cumber/cumber
npm错误!代码1
npm错误!路径C:\xxxx\source\repos\myapp\node\u modules\fibers
npm错误!命令失败
npm错误!命令C:\WINDOWS\system32\cmd.exe/d/s/C node build.js | | nodejs build.js
npm错误!gyp信息如果以ok结尾,它就起作用了
npm错误!gyp信息使用节点-gyp@7.1.2
npm错误!gyp信息使用node@14.15.4| win32 | x64
npm错误!gyp info使用Python版本3.9.1查找Python,可在“C:\xxxx\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\Python.exe”中找到
npm错误!gyp信息查找VS使用VS2019(16.8.30907.101)可在以下位置找到:
npm错误!gyp信息查找VS“C:\Program Files(x86)\Microsoft Visual Studio\2019\Professional”
npm错误!gyp info find VS run with--verbose获取详细信息
npm错误!gyp信息生成C:\xxxx\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\Python.exe
npm错误!gyp信息产卵参数[
npm ERR!gyp info spawn args'C:\\xxxx\\AppData\\Roaming\\npm\\node\u modules\\npm\\node\u modules\\node gyp\\gyp\\gyp\u main.py',
npm ERR!gyp信息生成参数“binding.gyp”,
npm ERR!gyp信息生成参数'-f',
npm错误!gyp信息生成参数'MSV',
npm ERR!gyp信息产卵参数'-I',
npm ERR!gyp info spawn args'C:\\xxxx\\source\\repos\\myapp\\node\u modules\\fibers\\build\\config.gypi',
npm ERR!gyp信息产卵参数'-I',
npm ERR!gyp info spawn args'C:\\xxxx\\AppData\\Roaming\\npm\\node\u modules\\npm\\node\u modules\\node gyp\\addon.gypi',
npm ERR!gyp信息产卵参数'-I',
npm ERR!gyp info spawn args'C:\\xxxx\\AppData\\Local\\node gyp\\Cache\\14.15.4\\include\\node\\common.gypi',
npm ERR!gyp info spawn args'-dllibrary=shared_library',
npm ERR!gyp信息生成参数'-Dvisibility=default',
npm ERR!gyp info spawn args'-Dnode\u root\u dir=C:\\xxxx\\AppData\\Local\\node gyp\\Cache\\14.15.4',
npm ERR!gyp info spawn args'-Dnode\u gyp\u dir=C:\\xxxx\\AppData\\Roaming\\npm\\node\u modules\\npm\\node\u modules\\node gyp',

npm ERR!gyp info spawn args'-Dnode\u lib\u file=C:\\\\Users\\\\xxx\\\\AppData\\\\Local\\\\node gyp\\\\Cache\\\\\14.15.4\\\\\\全局安装节点gyp,并按照windows的步骤进行安装