none
`C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe` failed with exit code: 3221225477 RRS feed

  • 質問

  • React Nativeのプロジェクトを作成している中で、
    yarn install を 実行したときに、下記のエラーが発生しました。

    `C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe` failed with exit code: 3221225477

    node-gypというライブラリを使う必要があり、
    いろいろ調べたなかで、

    yarn global add windows-build-tools

    こちらのコマンドは実行済みです。

    もし心当たりがある方がいらっしゃったら、コメントいただけますと幸いです。
    かれこれ、3日間ほど悩んでいます。
    どうぞよろしくお願いいたします。

    - 環境
    nodejs: v10.15.3
    npm: 6.14.7

    以下は、詳細な情報です。

    C:\Users\Ryotaro\Documents\GitHub\APO-Native>yarn install
    yarn install v1.17.3
    [1/4] Resolving packages...
    [2/4] Fetching packages...
    info fsevents@1.2.13: The platform "win32" is incompatible with this module.
    info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
    info fsevents@2.1.3: The platform "win32" is incompatible with this module.
    info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
    [3/4] Linking dependencies...
    warning " > @improbable-eng/grpc-web@0.11.0" has unmet peer dependency "google-protobuf@^3.2.0".
    warning "@react-native-community/datetimepicker > react-native-windows@0.62.3" has incorrect peer dependency "react@16.11.0".
    warning "@react-native-community/datetimepicker > react-native-windows@0.62.3" has incorrect peer dependency "react-native@^0.62.0-0".
    warning " > @react-native-community/google-signin@3.0.4" has unmet peer dependency "prop-types@*".
    warning " > @types/@3.6.5" has unmet peer dependency "@react-navigation/core@^3.0.0".
    warning "native-base > eslint-config-prettier@6.11.0" has unmet peer dependency "eslint@>=3.14.1".
    warning " > react-native@0.60.6" has incorrect peer dependency "react@16.8.6".
    warning " > react-native-actionsheet@2.4.2" has unmet peer dependency "prop-types@>=15.4.0".
    warning " > react-native-gifted-chat@0.9.11" has unmet peer dependency "prop-types@*".
    warning " > react-native-gifted-chat@0.9.11" has unmet peer dependency "react-native-video@*".
    warning "react-native-gifted-chat > react-native-maps@0.24.2" has unmet peer dependency "prop-types@^15.0 || ^16.0".
    warning " > react-native-largelist-v3@3.0.15" has incorrect peer dependency "react-native@^0.50.0".
    warning " > react-native-largelist-v3@3.0.15" has unmet peer dependency "prop-types@^15.6.0".
    warning " > react-native-localization@2.1.6" has incorrect peer dependency "react-native@^0.41.2".
    warning " > react-native-localization@2.1.6" has unmet peer dependency "react-native-windows@0.41.0-rc.1".
    warning " > react-native-maps@0.26.1" has unmet peer dependency "prop-types@^15.0 || ^16.0".
    warning "react-native-paper > create-react-context@0.2.3" has unmet peer dependency "prop-types@^15.0.0".
    warning " > react-native-qrcode@0.3.0" has incorrect peer dependency "react-native-webview@^5.4.0".
    warning " > react-native-spring-scrollview@2.0.23" has incorrect peer dependency "react-native@^0.50.0".
    warning " > react-native-spring-scrollview@2.0.23" has incorrect peer dependency "lottie-react-native@latest".
    warning " > react-native-swipe-list-view@2.5.0" has unmet peer dependency "prop-types@>=15.5.0".
    warning " > react-native-swiper-animated@1.5.3" has unmet peer dependency "prop-types@*".
    warning " > react-native-webview@8.2.1" has unmet peer dependency "react-native-windows@^0.61.0-beta.58".
    warning " > react-navigation-redux-helpers@4.0.1" has unmet peer dependency "@react-navigation/core@*".
    warning " > react-use@15.3.3" has unmet peer dependency "react-dom@^16.8.0".
    warning "react-use > nano-css@5.3.0" has unmet peer dependency "react-dom@*".
    warning "@storybook/addon-actions > @storybook/api@5.3.19" has unmet peer dependency "regenerator-runtime@*".
    warning "@storybook/addon-actions > @storybook/components@5.3.19" has unmet peer dependency "react-dom@*".
    warning "@storybook/addon-actions > @storybook/theming@5.3.19" has unmet peer dependency "react-dom@*".
    warning "@storybook/addon-actions > @storybook/api > @reach/router@1.3.4" has unmet peer dependency "react-dom@15.x || 16.x || 16.4.0-alpha.0911da3".
    warning "@storybook/addon-links > @storybook/router@5.3.19" has unmet peer dependency "react-dom@*".
    warning "@storybook/addon-knobs > react-select@3.1.0" has unmet peer dependency "react-dom@^16.8.0".
    warning "@storybook/addon-knobs > react-select > react-transition-group@4.4.1" has unmet peer dependency "react-dom@>=16.6.0".
    warning " > babel-loader@8.1.0" has unmet peer dependency "webpack@>=2".
    warning " > react-addons-test-utils@15.6.2" has unmet peer dependency "react-dom@^15.4.2".
    [4/4] Building fresh packages...
    [-/19] ⠈ waiting...
    [2/19] ⠁ unix-dgram
    [3/19] ⠁ bufferutil
    [-/19] ⠁ waiting...
    error C:\Users\Ryotaro\Documents\GitHub\APO-Native\node_modules\unix-dgram: Command failed.
    Exit code: 1
    Command: node-gyp rebuild
    Arguments:
    Directory: C:\Users\Ryotaro\Documents\GitHub\APO-Native\node_modules\unix-dgram
    Output:
    gyp info it worked if it ends with ok
    gyp info using node-gyp@7.0.0
    gyp info using node@10.15.3 | win32 | x64
    gyp info find Python using Python version 2.7.15 found at "C:\Users\Ryotaro\.windows-build-tools\python27\python.exe"
    gyp http GET https://nodejs.org/download/release/v10.15.3/node-v10.15.3-headers.tar.gz
    gyp http 200 https://nodejs.org/download/release/v10.15.3/node-v10.15.3-headers.tar.gz
    gyp http GET https://nodejs.org/download/release/v10.15.3/SHASUMS256.txt
    gyp http GET https://nodejs.org/download/release/v10.15.3/win-x86/node.lib
    gyp http GET https://nodejs.org/download/release/v10.15.3/win-x64/node.lib
    gyp http GET https://nodejs.org/download/release/v10.15.3/win-arm64/node.lib
    gyp http 200 https://nodejs.org/download/release/v10.15.3/SHASUMS256.txt
    gyp http 404 https://nodejs.org/download/release/v10.15.3/win-arm64/node.lib
    gyp http 200 https://nodejs.org/download/release/v10.15.3/win-x86/node.lib
    gyp http 200 https://nodejs.org/download/release/v10.15.3/win-x64/node.lib
    gyp info find VS using VS2019 (16.7.30330.147) found at:
    gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
    gyp info find VS run with --verbose for detailed information
    gyp info spawn C:\Users\Ryotaro\.windows-build-tools\python27\python.exe
    gyp info spawn args [ 'C:\\Users\\Ryotaro\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-gyp\\gyp\\gyp_main.py',
    gyp info spawn args   'binding.gyp',
    gyp info spawn args   '-f',
    gyp info spawn args   'msvs',
    gyp info spawn args   '-I',
    gyp info spawn args   'C:\\Users\\Ryotaro\\Documents\\GitHub\\APO-Native\\node_modules\\unix-dgram\\build\\config.gypi',
    gyp info spawn args   '-I',
    gyp info spawn args   'C:\\Users\\Ryotaro\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-gyp\\addon.gypi',
    gyp info spawn args   '-I',
    gyp info spawn args   'C:\\Users\\Ryotaro\\AppData\\Local\\node-gyp\\Cache\\10.15.3\\include\\node\\common.gypi',
    gyp info spawn args   '-Dlibrary=shared_library',
    gyp info spawn args   '-Dvisibility=default',
    gyp info spawn args   '-Dnode_root_dir=C:\\Users\\Ryotaro\\AppData\\Local\\node-gyp\\Cache\\10.15.3',
    gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\Ryotaro\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-gyp',
    gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\Ryotaro\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\10.15.3\\\\<(target_arch)\\\\node.lib',
    gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\Ryotaro\\Documents\\GitHub\\APO-Native\\node_modules\\unix-dgram',
    gyp info spawn args   '-Dnode_engine=v8',
    gyp info spawn args   '--depth=.',
    gyp info spawn args   '--no-parallel',
    gyp info spawn args   '--generator-output',
    gyp info spawn args   'C:\\Users\\Ryotaro\\Documents\\GitHub\\APO-Native\\node_modules\\unix-dgram\\build',
    gyp info spawn args   '-Goutput_dir=.' ]
    gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe
    gyp info spawn args [ 'build/binding.sln',
    gyp info spawn args   '/clp:Verbosity=minimal',
    gyp info spawn args   '/nologo',
    gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
    gyp ERR! build error
    gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 3221225477
    gyp ERR! stack     at ChildProcess.onExit (C:\Users\Ryotaro\AppData\Local\Yarn\Data\global\node_modules\node-gyp\lib\build.js:194:23)
    gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
    gyp ERR! System Windows_NT 10.0.18362
    gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Ryotaro\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
    gyp ERR! cwd C:\Users\Ryotaro\Documents\GitHub\APO-Native\node_modules\unix-dgram




    warning Error running install script for optional dependency: "C:\\Users\\Ryotaro\\Documents\\GitHub\\APO-Native\\node_modules\\bufferutil: Command failed.
    Exit code: 1
    Command: node-gyp rebuild
    Arguments:
    Directory: C:\\Users\\Ryotaro\\Documents\\GitHub\\APO-Native\\node_modules\\bufferutil
    Output:
    gyp info it worked if it ends with ok
    gyp info using node-gyp@7.0.0
    gyp info using node@10.15.3 | win32 | x64
    gyp info find Python using Python version 2.7.15 found at \"C:\\Users\\Ryotaro\\.windows-build-tools\\python27\\python.exe\"
    gyp http GET https://nodejs.org/download/release/v10.15.3/node-v10.15.3-headers.tar.gz
    gyp http 200 https://nodejs.org/download/release/v10.15.3/node-v10.15.3-headers.tar.gz
    gyp http GET https://nodejs.org/download/release/v10.15.3/SHASUMS256.txt
    gyp http GET https://nodejs.org/download/release/v10.15.3/win-x86/node.lib
    gyp http GET https://nodejs.org/download/release/v10.15.3/win-arm64/node.lib
    gyp http GET https://nodejs.org/download/release/v10.15.3/win-x64/node.lib
    gyp http 200 https://nodejs.org/download/release/v10.15.3/SHASUMS256.txt
    gyp http 200 https://nodejs.org/download/release/v10.15.3/win-x64/node.lib
    gyp http 404 https://nodejs.org/download/release/v10.15.3/win-arm64/node.lib
    gyp http 200 https://nodejs.org/download/release/v10.15.3/win-x86/node.lib
    gyp info find VS using VS2019 (16.7.30330.147) found at:
    gyp info find VS \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\"
    gyp info find VS run with --verbose for detailed information
    gyp info spawn C:\\Users\\Ryotaro\\.windows-build-tools\\python27\\python.exe
    gyp info spawn args [ 'C:\\\\Users\\\\Ryotaro\\\\AppData\\\\Local\\\\Yarn\\\\Data\\\\global\\\\node_modules\\\\node-gyp\\\\gyp\\\\gyp_main.py',
    gyp info spawn args   'binding.gyp',
    gyp info spawn args   '-f',
    gyp info spawn args   'msvs',
    gyp info spawn args   '-I',
    gyp info spawn args   'C:\\\\Users\\\\Ryotaro\\\\Documents\\\\GitHub\\\\APO-Native\\\\node_modules\\\\bufferutil\\\\build\\\\config.gypi',
    gyp info spawn args   '-I',
    gyp info spawn args   'C:\\\\Users\\\\Ryotaro\\\\AppData\\\\Local\\\\Yarn\\\\Data\\\\global\\\\node_modules\\\\node-gyp\\\\addon.gypi',
    gyp info spawn args   '-I',
    gyp info spawn args   'C:\\\\Users\\\\Ryotaro\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\10.15.3\\\\include\\\\node\\\\common.gypi',
    gyp info spawn args   '-Dlibrary=shared_library',
    gyp info spawn args   '-Dvisibility=default',
    gyp info spawn args   '-Dnode_root_dir=C:\\\\Users\\\\Ryotaro\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\10.15.3',
    gyp info spawn args   '-Dnode_gyp_dir=C:\\\\Users\\\\Ryotaro\\\\AppData\\\\Local\\\\Yarn\\\\Data\\\\global\\\\node_modules\\\\node-gyp',
    gyp info spawn args   '-Dnode_lib_file=C:\\\\\\\\Users\\\\\\\\Ryotaro\\\\\\\\AppData\\\\\\\\Local\\\\\\\\node-gyp\\\\\\\\Cache\\\\\\\\10.15.3\\\\\\\\<(target_arch)\\\\\\\\node.lib',
    gyp info spawn args   '-Dmodule_root_dir=C:\\\\Users\\\\Ryotaro\\\\Documents\\\\GitHub\\\\APO-Native\\\\node_modules\\\\bufferutil',
    gyp info spawn args   '-Dnode_engine=v8',
    gyp info spawn args   '--depth=.',
    gyp info spawn args   '--no-parallel',
    gyp info spawn args   '--generator-output',
    gyp info spawn args   'C:\\\\Users\\\\Ryotaro\\\\Documents\\\\GitHub\\\\APO-Native\\\\node_modules\\\\bufferutil\\\\build',
    gyp info spawn args   '-Goutput_dir=.' ]
    gyp info spawn C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe
    gyp info spawn args [ 'build/binding.sln',
    gyp info spawn args   '/clp:Verbosity=minimal',
    gyp info spawn args   '/nologo',
    gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
    gyp ERR! build error
    gyp ERR! stack Error: `C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe` failed with exit code: 3221225477
    gyp ERR! stack     at ChildProcess.onExit (C:\\Users\\Ryotaro\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-gyp\\lib\\build.js:194:23)
    gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
    gyp ERR! System Windows_NT 10.0.18362
    gyp ERR! command \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\Ryotaro\\\\AppData\\\\Local\\\\Yarn\\\\Data\\\\global\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js\" \"rebuild\"
    gyp ERR! cwd C:\\Users\\Ryotaro\\Documents\\GitHub\\APO-Native\\node_modules\\bufferutil
    gyp ERR! node -v v10.15.3
    gyp ERR! node-gyp -v v7.0.0
    gyp ERR! not ok"
    info This module is OPTIONAL, you can safely ignore this error
    2020年8月9日 17:55

すべての返信

  • どうぞよろしくお願いいたします。
    2020年8月9日 17:58
  • Ryotaro Nambaさん、こんにちは。フォーラムオペレーターのKumoです。
    MSDNフォーラムにご投稿くださいましてありがとうございます。

    詳細な状況をご提供いただきありがとうございます。その後のご状況いかがでしょうか。 
    追加でご確認いただいたことなどあれば、追記いただくことで回答がつきやすくなります。  

    どうぞよろしくお願いいたします。

    MSDN/ TechNet Community Support Kumo ~参考になった投稿には「回答としてマーク」をご設定ください。なかった場合は「回答としてマークされていない」も設定できます。同じ問題で後から参照した方が、情報を見つけやすくなりますので、 ご協力くださいますようお願いいたします。また、MSDNサポートに賛辞や苦情がある場合は、MSDNFSF@microsoft.comまでお気軽にお問い合わせください。~

    2020年8月13日 2:16
    モデレータ
  • Ryotaro Nambaさん、こんにちは。フォーラムオペレーターのKumoです。
    MSDNフォーラムにご投稿くださいましてありがとうございます。

    「コード:3221225477」はプログラムが異常終了またはクラッシュしたという意味であると思います。
    Develperコマンドプロンプトでmsbuildを実行してみて、機能しているかどうかを確認してください。

    ログに基づいて、コマンドは次のようです。
    「msbuild XX.sln /clp:Verbosity =minimal /nologo /p:Configuration=Release;Platform=x64」

    どうぞよろしくお願いいたします。

    MSDN/ TechNet Community Support Kumo ~参考になった投稿には「回答としてマーク」をご設定ください。なかった場合は「回答としてマークされていない」も設定できます。同じ問題で後から参照した方が、情報を見つけやすくなりますので、 ご協力くださいますようお願いいたします。また、MSDNサポートに賛辞や苦情がある場合は、MSDNFSF@microsoft.comまでお気軽にお問い合わせください。~

    2020年8月14日 2:25
    モデレータ